public void GetValidCustomerListByCustomerIDTest() { CustomerMgtService target = new CustomerMgtService(); // TODO: Initialize to an appropriate value string customerID = "*****@*****.**"; // TODO: Initialize to an appropriate value List<CustomerInfo> actual; actual = target.GetValidCustomerListByCustomerID(customerID); }
public void GetValidCustomerByCustomerSysNoTest() { CustomerMgtService target = new CustomerMgtService(); // TODO: Initialize to an appropriate value int customerSysNo = 100003; // TODO: Initialize to an appropriate value CustomerInfo actual; actual = target.GetValidCustomerByCustomerSysNo(customerSysNo); }
public void InsertCustomerTest() { CustomerMgtService target = new CustomerMgtService(); // TODO: Initialize to an appropriate value CustomerInfo entity = new CustomerInfo() { CustomerID = "*****@*****.**", Password = "******", Status = CustomerStatus.Valid, RegIP = "192.168.1.104" }; var customerSysNo = CustomerMgtService.Instance.InsertCustomer(entity); int expected = 0; // TODO: Initialize to an appropriate value int actual; actual = target.InsertCustomer(entity); Assert.AreEqual(expected, actual); Assert.Inconclusive("Verify the correctness of this test method."); }
public void UpdateCustomerStatusBySysNoTest() { CustomerMgtService target = new CustomerMgtService(); // TODO: Initialize to an appropriate value CustomerInfo entity = new CustomerInfo() { SysNo = 100002, Status = CustomerStatus.Deleted }; target.UpdateCustomerStatusBySysNo(entity); }
public void UpdateCustomerPasswordByUserIDTest() { CustomerMgtService target = new CustomerMgtService(); // TODO: Initialize to an appropriate value CustomerInfo entity = new CustomerInfo() { CustomerID = "*****@*****.**", Password = "******" }; string oldPassword = "******"; target.UpdateCustomerPasswordByUserID(entity, oldPassword); }
public void UpdateCustomerBaseBySysNoTest() { CustomerMgtService target = new CustomerMgtService(); // TODO: Initialize to an appropriate value CustomerInfo entity = new CustomerInfo() { SysNo = 100002, CustomerID = "*****@*****.**", CustomerName = "Test", Status = CustomerStatus.InValid }; target.UpdateCustomerBaseBySysNo(entity); }