コード例 #1
0
 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);
 }
コード例 #2
0
 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);
 }
コード例 #3
0
 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.");
 }
コード例 #4
0
 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);
 }
コード例 #5
0
 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);
 }
コード例 #6
0
 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);
 }