public IHost?BuildDefaultHost() { _defaultStartupType = StartupLoader.GetStartupType(_assemblyName); _host = StartupLoader.CreateHost(_defaultStartupType, _assemblyName, _diagnosticMessageSink); if (_host != null) { _hosts.Add(_host); } return(_host); }
public void GetStartupTypeTest() { Assert.Equal(typeof(Startup), StartupLoader.GetStartupType(Name)); Assert.Equal(typeof(Startup), StartupLoader.GetStartupType(new AssemblyName("Xunit.DependencyInjection.FakeTest"))); }