public void CheckCustomerDetails() { var controller = new CustomerAppController(); var result = controller.GetCustomerDetails(6); Assert.AreEqual("*****@*****.**", result.customerEmail); }
public void CheckCredentials() { var controller = new CustomerAppController(); var result = controller.CheckCredentials("*****@*****.**", "password"); Assert.AreEqual(6, result[1]); result = controller.CheckCredentials("*****@*****.**", "password"); Assert.AreEqual(0, result[0]); }