コード例 #1
0
        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>());
        }
コード例 #2
0
        public void Search_getsTextInput_callSearchInModel()
        {
            var s = "searchString";

            _uut.SearchCommand.Execute(s);
            _model.Received().Search(s);
        }