public void HttpClientBuilder_action_is_added_and_applied(TestClientConfigurator sut, Action <IHttpClientBuilder> action, IHttpClientBuilder builder) { sut.AddHttpClientBuilderConfiguration(action); sut.ApplyHttpClientBuilderConfigurations(builder); Mock.Get(action).Verify(p => p(builder)); }
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 HttpClientBuilder_action_is_added(TestClientConfigurator sut, Action <IHttpClientBuilder> action) { sut.AddHttpClientBuilderConfiguration(action); Assert.That(sut.HttpClientBuilderActions, Contains.Item(action)); }
public void ServiceCollection_action_is_added(TestClientConfigurator sut, Action <IServiceCollection> action) { sut.AddServiceConfiguration(action); Assert.That(sut.ServiceCollectionActions, Contains.Item(action)); }