mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-05-28 11:42:28 +00:00
Basic testing framework
This commit is contained in:
parent
bce6d1e2ef
commit
5052d19656
8 changed files with 97 additions and 4 deletions
19
ProjectLighthouse.Tests/LighthouseTest.cs
Normal file
19
ProjectLighthouse.Tests/LighthouseTest.cs
Normal file
|
@ -0,0 +1,19 @@
|
|||
using System;
|
||||
using System.Net.Http;
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
using Microsoft.AspNetCore.TestHost;
|
||||
using ProjectLighthouse.Types;
|
||||
|
||||
namespace ProjectLighthouse.Tests {
|
||||
public class LighthouseTest {
|
||||
public readonly TestServer Server;
|
||||
public readonly HttpClient Client;
|
||||
|
||||
public LighthouseTest() {
|
||||
this.Server = new TestServer(new WebHostBuilder()
|
||||
.UseStartup<Startup>());
|
||||
this.Client = this.Server.CreateClient();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue