Esempio n. 1
0
 public void TestList()
 {
     //Act
     Assert.AreEqual(_lawnmowerService.List().Count, 3, "Should bet 3 items");
     Assert.AreEqual(_lawnmowerService.List().First().Type, "Lawnmower", "Type should be Lawnmower");
 }
Esempio n. 2
0
 public void TestList()
 {
     //Act
     Assert.AreEqual(_tShirtService.List().Count, 3, "Should bet 3 items");
     Assert.AreEqual(_tShirtService.List().First().Type, "TShirt", "Type should be TShirt");
 }
Esempio n. 3
0
 public void TestList()
 {
     //Act
     Assert.AreEqual(_productService.List().Count, 8, "Should bet 8 items");
     Assert.AreEqual(_productService.List().Count(i => i.Type == "Lawnmower"), 3, "Should have 3 Lawnmower");
     Assert.AreEqual(_productService.List().Count(i => i.Type == "Phone Case"), 2, "Should have 2 Phone Case");
     Assert.AreEqual(_productService.List().Count(i => i.Type == "TShirt"), 3, "Should have 3 TShirts");
 }
Esempio n. 4
0
 public void TestList()
 {
     //Act
     Assert.AreEqual(_phoneCaseService.List().Count, 2, "Should bet 2 items");
     Assert.AreEqual(_phoneCaseService.List().First().Type, "Phone Case", "Type should be Phone Case");
 }