예제 #1
0
    public IHost?BuildDefaultHost()
    {
        _defaultStartupType = StartupLoader.GetStartupType(_assemblyName);

        _host = StartupLoader.CreateHost(_defaultStartupType, _assemblyName, _diagnosticMessageSink);

        if (_host != null)
        {
            _hosts.Add(_host);
        }

        return(_host);
    }
예제 #2
0
        public void GetStartupTypeTest()
        {
            Assert.Equal(typeof(Startup), StartupLoader.GetStartupType(Name));

            Assert.Equal(typeof(Startup), StartupLoader.GetStartupType(new AssemblyName("Xunit.DependencyInjection.FakeTest")));
        }