public void FakeProductProductRepository_Delete_RemovesNoProductIfNotPresent()
        {
            // Arrange
            IRepository<Product> repo = new FakeRepository<Product>(ObjectMother.Test1Product);
            int newID = 2;
            var product = new Product { ID = newID, Name = "Test2" };

            // Act
            repo.Delete(product);

            // Assert
            Assert.AreEqual<int>(1, repo.FindAll().Count());
        }
        public void FakeProductProductRepository_Save_AddsProductIfNotPresent()
        {
            // Arrange
            IRepository<Product> repo = new FakeRepository<Product>(ObjectMother.Test1Product);
            int newID = 2;
            var product = new Product { ID = newID, Name = "Test2" };

            // Act
            repo.Save(product);

            // Assert
            Assert.AreEqual<int>(2, repo.FindAll().Count());
            Assert.IsNotNull(repo.FindAll().Where(p => p.ID == newID).FirstOrDefault());
        }