public void RemovingFromList() { Customer firstCustomer = new Customer(); Customer secondCustomer = new Customer(); ObjectRepo repo = new ObjectRepo(); repo.NewCustomer("miguel", "romero", 2); repo.NewCustomer("first", "last", 1); repo.RemoveObject(2); int actual = repo.GetList().Count(); int expected = 1; Assert.AreEqual(actual, expected); }
public void AddToList() { //Arrange Customer name = new Customer(); ObjectRepo repo = new ObjectRepo(); //Act repo.NewCustomer("first", "last", 1); int actual = repo.GetList().Count(); int expect = 1; //Assert Assert.AreEqual(actual, expect); }