Ejemplo n.º 1
0
 public IEnumerator <ITask> ToUpperHandler(ToUpper toUpper)
 {
     toUpper.ResponsePort.Post(
         ToUpperResponse.FromRequest(toUpper.Body)
         );
     yield break;
 }
Ejemplo n.º 2
0
            public TheExecuteMethod(ApplicationContext applicationContext)
                : base(applicationContext)
            {
                var rule = new ToUpper(RootFake.NameProperty);

                InitializeTest(rule, null);
            }
Ejemplo n.º 3
0
            public TheExecuteMethodAlt()
            {
                var rule = new ToUpper(RootFake.NameProperty);
                var root = new RootFake();

                root.Name = "csla rocks";
                InitializeTest(rule, root);
            }
Ejemplo n.º 4
0
            public TheExecuteMethodAlt(ApplicationContext applicationContext)
                : base(applicationContext)
            {
                var rule = new ToUpper(RootFake.NameProperty);
                var root = new RootFake();

                root.Name = "csla rocks";
                InitializeTest(rule, root);
            }
Ejemplo n.º 5
0
        public override int GetHashCode()
        {
            unchecked
            {
                int hash = 17;
                hash = hash * 31 + text.GetHashCode();
                hash = hash * 31 + toLower.GetHashCode();
                hash = hash * 31 + ToUpper.GetHashCode();
                hash = hash * 31 + placeHolder.GetHashCode();

                return(hash);
            }
        }
Ejemplo n.º 6
0
        public void ToUpperCorrectlyConvertsToJson()
        {
            var tu = new ToUpper();

            tu.ToString().ShouldEqual(ToUpperJson);
        }
 public string DoSomethingWithDelegate(string name, ToUpper toUpper)
 {
     return(toUpper(name));
 }
Ejemplo n.º 8
0
            public TheExecuteMethod()
            {
                var rule = new ToUpper(RootFake.NameProperty);

                InitializeTest(rule, null);
            }