1 instantiation of MyStartup
Microsoft.AspNetCore.Tests (1)
WebApplicationTests.cs (1)
1835var ex4 = Assert.Throws<NotSupportedException>(() => builder.WebHost.UseStartup(context => new MyStartup()));
2 references to MyStartup
Microsoft.AspNetCore.Tests (2)
WebApplicationTests.cs (2)
1833var ex2 = Assert.Throws<NotSupportedException>(() => builder.WebHost.UseStartup<MyStartup>()); 1834var ex3 = Assert.Throws<NotSupportedException>(() => builder.WebHost.UseStartup(typeof(MyStartup)));