using Microsoft.Extensions.DependencyInjection; using Volo.Abp.Tests.Modularity; using Volo.DependencyInjection.Tests; using Xunit; namespace Volo.Abp.Tests { public class AbpApplication_Tests { [Fact] public void Should_Start_And_Stop_Empty_Application() { var services = new ServiceCollection(); using (var application = AbpApplication.Create(services)) { application.Start(services.BuildServiceProvider()); } } [Fact] public void Should_Automatically_Register_Modules() { var services = new ServiceCollection(); using (AbpApplication.Create(services)) { services.ShouldContainSingleton(typeof(IndependentEmptyModule)); } } } }