예제 #1
0
        public void Should_Handle_Methods_Best_Effort()
        {
            var handler = new EmailHandler();
            var id      = P <IEmailFeature>(handler.BestEffort()).Email("Hello");

            Assert.AreEqual(1, id);
        }
예제 #2
0
        public void Should_Apply_Nested_Best_Effort()
        {
            var handler = new EmailHandler();

            P <IEmailFeature>(handler.BestEffort()).CancelEmail(6);
        }
예제 #3
0
        public void Should_Not_Propogate_Best_Effort()
        {
            var handler = new EmailHandler();

            P <IEmailFeature>(handler.BestEffort()).CancelEmail(1);
        }