Example #1
0
        public void ProductStoreShouldSaveProduct()
        {
            Product p = new Product()
            {
                Sku = "12", Id = 4, Name = "test", UnitPrice = 1
            };

            productStore.SaveProduct(p);
            fileHandler.Verify(x => x.Writeall(It.IsAny <string>(), It.IsAny <string>()), Times.Once);
        }