public void ItShouldGetRepositoryBehaviorForMethodOverridingDecoratedOnTheClass()
        {
            var repository = new MockRepositoryWithBehavior();
            var method = repository.GetType().GetMethod("BehaviorOverwritten");
            var behavior = repository.GetBehavior(method);

            Assert.IsFalse(behavior.HandlesEverything);
        }
        public void ItShouldGetRepositoryBehaviorForMethodOverridingDecoratedOnTheClass()
        {
            var repository = new MockRepositoryWithBehavior();
            var method     = repository.GetType().GetMethod("BehaviorOverwritten");
            var behavior   = repository.GetBehavior(method);

            Assert.IsFalse(behavior.HandlesEverything);
        }
        public void ItShouldGetRepositoryBehaviorDecoratedOnTheClass()
        {
            var repository = new MockRepositoryWithBehavior();
            var method = repository.GetType().GetMethod("GetAll");
            var behavior = repository.GetBehavior(method);

            Assert.IsTrue(behavior.HandlesEverything);
        }
        public void ItShouldGetRepositoryBehaviorDecoratedOnTheClass()
        {
            var repository = new MockRepositoryWithBehavior();
            var method     = repository.GetType().GetMethod("GetAll");
            var behavior   = repository.GetBehavior(method);

            Assert.IsTrue(behavior.HandlesEverything);
        }