public ActionResult DoThing(string name)
 {
     ViewData["returnedString"] = new ThingDoer().DoThing(name);
     return View("Index");
 }
Exemplo n.º 2
0
 public void ThingDoerDoesThing()
 {
     const string name = "Gary";
     var returnedThing = new ThingDoer().DoThing(name);
     Assert.That(returnedThing, Is.EqualTo("Hello " + name));
 }