Пример #1
0
            public void ReturnTrue_WhenCustomerIsDeleted()
            {
                CustomerBase customerBase = new CustomerBase();

                customerBase.Add(new Customer("Joseph", 1329));
                customerBase.Add(new Customer("Brigham", 8791));
                Assert.IsTrue(customerBase.Delete(1329));
                Assert.IsTrue(customerBase.Delete(8791));
                Assert.IsTrue(customerBase.getListSize() == 0);
            }
Пример #2
0
            public void ReturnFalse_WhenCustomerIdDoesNotExist()
            {
                CustomerBase customerBase = new CustomerBase();

                customerBase.Add(new Customer("Abraham", 8734));
                customerBase.Add(new Customer("Lincoln", 9010));
                Assert.IsFalse(customerBase.Delete(7777));
                Assert.IsTrue(customerBase.getListSize() == 2);
            }