public void ProductRepositoryRetrieveTest() { //Blindly testing around Product product = new Product(7); Object myObject = new Object(); Console.WriteLine("Peep " + myObject.ToString()); Console.WriteLine("Bloop " + product.ToString()); var productRepository = new ProductRepository(); Console.WriteLine("Nerp " + productRepository); var actual = productRepository.Retrieve(7); }
public void RetrieveTest() { //-- Arrange var productRepository = new ProductRepository(); var expected = new Product(2) { CurrentPrice = 15.96M, ProductDescription = "Assorted Size Set of 4 Bright Yellow Mini Sunflowers", ProductName = "Sunflowers" }; //-- Act var actual = productRepository.Retrieve(2); //-- Assert Assert.AreEqual(expected.CurrentPrice, actual.CurrentPrice); Assert.AreEqual(expected.ProductDescription, actual.ProductDescription); Assert.AreEqual(expected.ProductName, actual.ProductName); }