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"); }
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"); }
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"); }
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"); }