public void AddRecipeCommandExecuted_RecipeNameIsTest_ModelAddRecipeToDbIsCalled() { _uut.RecipeName = "test"; _uut.AddRecipeCommand.Execute(null); _model.Received().AddRecipeToDb(Arg.Is <Recipe>(r => r.RecipeName == "test"), Arg.Any <string>()); }
public void Search_getsTextInput_callSearchInModel() { var s = "searchString"; _uut.SearchCommand.Execute(s); _model.Received().Search(s); }