Exemplo n.º 1
0
            public void ReturnFalse_WhenCustomerIdDoesNotExist()
            {
                CustomerBase customerBase = new CustomerBase();
                Customer     customer     = new Customer("Larry", 8855);

                customerBase.Add(customer);
                Assert.IsFalse(customerBase.Edit(0090, 4430, "Larry"));
            }
Exemplo n.º 2
0
            public void ReturnTrue_WhenOnlyCustomerIdIsEdited()
            {
                CustomerBase customerBase = new CustomerBase();
                Customer     customer     = new Customer("Joey", 5746);

                customerBase.Add(customer);
                Assert.IsTrue(customerBase.Edit(customer.PrimaryKey, 4398));
            }
Exemplo n.º 3
0
            public void ReturnTrue_WhenBothCustomerNameAndIdAreEdited()
            {
                CustomerBase customerBase = new CustomerBase();
                Customer     customer     = new Customer("Coby", 72343);

                customerBase.Add(customer);
                Assert.IsTrue(customerBase.Edit(customer.PrimaryKey, 8253, "Ryan"));
            }
Exemplo n.º 4
0
            public void ReturnTrue_WhenOnlyCustomerNameIsEdited()
            {
                CustomerBase customerBase = new CustomerBase();
                Customer     customer     = new Customer("Abraham", 7234);

                customerBase.Add(customer);
                Assert.IsTrue(customerBase.Edit(customer.PrimaryKey, 7234, "Isaac"));
            }