public void RecipeByIngredientsCommandBadTest() { var actualResult = new RecipeByIngredientsCommand(database) .Execute(new string[] { "вода" }); Assert.AreEqual(BotCode.Bad, actualResult.Code); }
public void RecipeByIngredientsCommandGoodTest() { var actualResult = new RecipeByIngredientsCommand(database) .Execute(new string[] { "хлеб" }); Assert.AreEqual(BotCode.Good, actualResult.Code); Assert.AreEqual(fakeRecipes.ElementAt(0).GetPrintableView(), actualResult.Result); }