public ActionResult assignCurrentIngredientNameForSearching(string ingredientName) { var rest = new MakeRESTCalls(); currentIngredient = new Ingredient(rest.CapitalizeString(ingredientName)); return(Redirect(string.Format("/home/recipe?name={0}", currentRecipe.name))); }
public void TestCapitliazingWordsWithHyphens() { var rest = new MakeRESTCalls(); var expected = "All-Purpose Flour"; var actual = rest.CapitalizeString("All-purpose flour"); Assert.AreEqual(expected, actual); }
public void TestCapitalizingWords2() { var rest = new MakeRESTCalls(); var expected = "All Purpose Unbleached Flour"; var actual = rest.CapitalizeString("all purpose unbleached flour"); Assert.AreEqual(expected, actual); }
public void TestCapitalizingWords3() { var rest = new MakeRESTCalls(); var expected = "I'm Just Trying To Make Something Longer To Make Sure I'm Not Going To Get Something Unexpected In My Code"; var actual = rest.CapitalizeString("I'm just trying to make something longer to make sure i'm not going to get something unexpected in my code"); Assert.AreEqual(expected, actual); }
public void TestCapitalizingWords() { var rest = new MakeRESTCalls(); var expected = "Vanilla"; var actual = rest.CapitalizeString("vanilla"); Assert.AreEqual(expected, actual); }