コード例 #1
0
 public IEnumerator <ITask> ToUpperHandler(ToUpper toUpper)
 {
     toUpper.ResponsePort.Post(
         ToUpperResponse.FromRequest(toUpper.Body)
         );
     yield break;
 }
コード例 #2
0
ファイル: ToUpperTest.cs プロジェクト: gnilesh4/csla
            public TheExecuteMethod(ApplicationContext applicationContext)
                : base(applicationContext)
            {
                var rule = new ToUpper(RootFake.NameProperty);

                InitializeTest(rule, null);
            }
コード例 #3
0
ファイル: ToUpperTest.cs プロジェクト: eugene-h-lin/csla-svn
            public TheExecuteMethodAlt()
            {
                var rule = new ToUpper(RootFake.NameProperty);
                var root = new RootFake();

                root.Name = "csla rocks";
                InitializeTest(rule, root);
            }
コード例 #4
0
ファイル: ToUpperTest.cs プロジェクト: gnilesh4/csla
            public TheExecuteMethodAlt(ApplicationContext applicationContext)
                : base(applicationContext)
            {
                var rule = new ToUpper(RootFake.NameProperty);
                var root = new RootFake();

                root.Name = "csla rocks";
                InitializeTest(rule, root);
            }
コード例 #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);
            }
        }
コード例 #6
0
        public void ToUpperCorrectlyConvertsToJson()
        {
            var tu = new ToUpper();

            tu.ToString().ShouldEqual(ToUpperJson);
        }
コード例 #7
0
 public string DoSomethingWithDelegate(string name, ToUpper toUpper)
 {
     return(toUpper(name));
 }
コード例 #8
0
ファイル: ToUpperTest.cs プロジェクト: eugene-h-lin/csla-svn
            public TheExecuteMethod()
            {
                var rule = new ToUpper(RootFake.NameProperty);

                InitializeTest(rule, null);
            }