コード例 #1
0
        public void UpdateCustomerInfoTypeTest_UpdatesType()
        {
            Customers customer = new Customers(firstName, lastName, type);
            EmailRepo repo     = new EmailRepo();

            repo.CreateCustomer(customer);
            Assert.IsTrue(repo.UpdateCustomerInfo(customer, "3", "potential"));
            Assert.IsTrue(repo.ShowCustomers());
        }
コード例 #2
0
        public void UpdateCustomerInfoRemoveTest_RemovesCustomer()
        {
            Customers customer = new Customers(firstName, lastName, type);
            EmailRepo repo     = new EmailRepo();

            repo.CreateCustomer(customer);
            Assert.IsTrue(repo.UpdateCustomerInfo(customer, "4", ""));
            Assert.IsFalse(repo.ShowCustomers());
        }
コード例 #3
0
        public void UpdateCustomerInfoLastNameTest_UpdatesLastName()
        {
            Customers customer = new Customers(firstName, lastName, type);
            EmailRepo repo     = new EmailRepo();

            repo.CreateCustomer(customer);
            Assert.IsTrue(repo.UpdateCustomerInfo(customer, "2", "Lucus"));
            Assert.IsTrue(repo.ShowCustomers());
        }