Exemple #1
0
        public void model_save_method_is_called_for_a_new_product()
        {
            var product = new Product {
                Code = "A1", Description = "A1 Desc", Price = 1.0
            };

            mockProductModel.Expect(p => p.Save(product)).IgnoreArguments();

            RaiseAddButtonPressed(product);

            mockProductModel.VerifyAllExpectations();
        }