Basic testing framework

This commit is contained in:
jvyden 2021-10-14 23:50:08 -04:00
parent bce6d1e2ef
commit 5052d19656
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278
8 changed files with 97 additions and 4 deletions

View 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();
}
}
}