public void Simple() { // Act var host = new MockHostBuilder() .UseStartup <Startup>() .Build(); // Assert Assert.NotNull(host.MockService); Assert.Equal("5", host.MockService.Value); }
public static MockHostBuilder UseStartup <TStartup>(this MockHostBuilder builder) { return(builder.UseStartup(typeof(TStartup))); }