示例#1
0
        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));
        }
示例#2
0
        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));
        }
示例#3
0
        public void HttpClientBuilder_action_is_added(TestClientConfigurator sut, Action <IHttpClientBuilder> action)
        {
            sut.AddHttpClientBuilderConfiguration(action);

            Assert.That(sut.HttpClientBuilderActions, Contains.Item(action));
        }
示例#4
0
        public void ServiceCollection_action_is_added(TestClientConfigurator sut, Action <IServiceCollection> action)
        {
            sut.AddServiceConfiguration(action);

            Assert.That(sut.ServiceCollectionActions, Contains.Item(action));
        }