public void ServiceCollection_action_is_added_and_applied(TestClientConfigurator sut, Action <IServiceCollection> action, IServiceCollection services) { sut.AddServiceConfiguration(action); sut.ApplyServiceConfigurations(services); Mock.Get(action).Verify(p => p(services)); }
public void ServiceCollection_action_is_added(TestClientConfigurator sut, Action <IServiceCollection> action) { sut.AddServiceConfiguration(action); Assert.That(sut.ServiceCollectionActions, Contains.Item(action)); }