示例#1
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));
        }
示例#2
0
        public void ServiceCollection_action_is_added(TestClientConfigurator sut, Action <IServiceCollection> action)
        {
            sut.AddServiceConfiguration(action);

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