public void TestRepository2() { // arrange IProductRepository productRepository = new ProductRepository2(); // act IEnumerable<Product> products = productRepository.GetByFileName(AppDomain.CurrentDomain.BaseDirectory + @"\..\..\sample.xml"); // assert Assert.That(products, Has.Some.Matches<Product>(p => p.Name == "IPod Nano")); }
public void GetProductWithDetailedInformation() { // arrange int productId = 316; // blade var productRepo = new ProductRepository2(); // act Product result = productRepo.GetProductWithDetailedInformation(productId); // assert Assert.IsNotNull(result); }