Exemple #1
0
        public void Simple()
        {
            // Act
            var host = new MockHostBuilder()
                       .UseStartup <Startup>()
                       .Build();

            // Assert
            Assert.NotNull(host.MockService);
            Assert.Equal("5", host.MockService.Value);
        }
Exemple #2
0
 public static MockHostBuilder UseStartup <TStartup>(this MockHostBuilder builder)
 {
     return(builder.UseStartup(typeof(TStartup)));
 }