public void Should_Raise_SolException_When_Project_Is_Null_Or_Empty() { // Arrange IConfiguration config = ConfigurationSetup.BuildConfiguration(SolTestsConstants.NoProjectAppSettings); IServiceCollection services = ContainerSetup.EmptyServiceCollection(); // Act/Assert Assert.Throws <SolException>(() => services.AddSol(config)); }
public void Should_Raise_SolException_When_Application_IConfigurationSection_Does_Not_Exists() { // Arrange IConfiguration config = ConfigurationSetup.BuildConfiguration(SolTestsConstants.NoAppSectionAppSettings); IServiceCollection services = ContainerSetup.EmptyServiceCollection(); // Act/Assert Assert.Throws <SolException>(() => services.AddSol(config)); }