예제 #1
0
        public void AddQueryBehaviour(DependencyLifetime lifetime)
        {
            _dependencies.AddQueryBehaviour <TestsModels.Emitting.Boos.Get.Behaviour>(lifetime);

            var behaviourType = typeof(TestsModels.Emitting.Boos.Get.Behaviour);

            _dependencies.Contains(behaviourType).Should().BeTrue();
            _dependencies.GetLifetime(behaviourType).Should().Be(lifetime);
        }
예제 #2
0
        public void AddQueryBehaviour(DependencyLifetime lifetime)
        {
            _dependencies.AddQueryBehaviour <Behaviour>(lifetime);

            var behaviourType = typeof(Behaviour);

            _dependencies.Contains(behaviourType).Should().BeTrue();
            _dependencies.GetLifetime(behaviourType).Should().Be(lifetime);
        }