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); }
public void AddQueryBehaviour(DependencyLifetime lifetime) { _dependencies.AddQueryBehaviour <Behaviour>(lifetime); var behaviourType = typeof(Behaviour); _dependencies.Contains(behaviourType).Should().BeTrue(); _dependencies.GetLifetime(behaviourType).Should().Be(lifetime); }