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