public void AddGitLabProxy_NoConfigurationLambda_ThrowsOnNullServiceCollection() { // Act var exception = Record.Exception( () => ServiceCollectionExtensions.AddGitLabProxy(null) ); // Assert Assert.IsType <ArgumentNullException>(exception); }
public void AddGitLabProxy_WithConfigurationLambda_ThrowsOnNullConfigureAction() { // Arrange var services = new ServiceCollection(); // Act var exception = Record.Exception( () => ServiceCollectionExtensions.AddGitLabProxy(services, null) ); // Assert Assert.IsType <ArgumentNullException>(exception); }
public void AddGitLabProxy_WithConfigurationLambda_ThrowsOnNullServiceCollection() { // Arrange Action <GitLabConfiguration> configure = config => {}; // Act var exception = Record.Exception( () => ServiceCollectionExtensions.AddGitLabProxy(null, configure) ); // Assert Assert.IsType <ArgumentNullException>(exception); }