Beispiel #1
0
        public void Bind_NoWrapper_BindShouldBeBindActionTwiceAndMore()
        {
            Action <Planet> action  = Console.WriteLine;
            var             wrapper = new JsonDataWrapper <Planet>();

            binder.Using(wrapper);

            Assert.DoesNotThrow(() => binder.Bind <Planet>(1, action));
            Assert.DoesNotThrow(() => binder.Bind <Planet>(1, (Action)TestActionForThisContext));
            Assert.DoesNotThrow(() => binder.Bind <Planet>(1, action));
            Assert.DoesNotThrow(() => binder.Bind <Planet>(1, (Action)TestActionForThisContext));
        }
Beispiel #2
0
 public FlowServer UsingWrapper <T>(IDataWrapper <T> wrapper)
 {
     flowBinder.Using(wrapper);
     return(this);
 }