public IEnumerator <ITask> ToUpperHandler(ToUpper toUpper) { toUpper.ResponsePort.Post( ToUpperResponse.FromRequest(toUpper.Body) ); yield break; }
public TheExecuteMethod(ApplicationContext applicationContext) : base(applicationContext) { var rule = new ToUpper(RootFake.NameProperty); InitializeTest(rule, null); }
public TheExecuteMethodAlt() { var rule = new ToUpper(RootFake.NameProperty); var root = new RootFake(); root.Name = "csla rocks"; InitializeTest(rule, root); }
public TheExecuteMethodAlt(ApplicationContext applicationContext) : base(applicationContext) { var rule = new ToUpper(RootFake.NameProperty); var root = new RootFake(); root.Name = "csla rocks"; InitializeTest(rule, root); }
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); } }
public void ToUpperCorrectlyConvertsToJson() { var tu = new ToUpper(); tu.ToString().ShouldEqual(ToUpperJson); }
public string DoSomethingWithDelegate(string name, ToUpper toUpper) { return(toUpper(name)); }
public TheExecuteMethod() { var rule = new ToUpper(RootFake.NameProperty); InitializeTest(rule, null); }