Esempio n. 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);
        }
Esempio n. 2
0
        public void Should_Apply_Nested_Best_Effort()
        {
            var handler = new EmailHandler();

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

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