public void ExceptionTestFor_UserNotFoundforCustomer() { Customer user = new Customer() { UserName = "******", Password = "" }; //Assert var ex = Assert.Throws <UserNotFoundException>(() => _CustomerSevices.Login(user.UserName, user.Password)); Assert.Equal("User Not Found ", ex.Messages); }
public void Test_for_LoginForCustomer() { Customer customer = new Customer() { Password = "", UserName = "******" }; var Result = _CustomerSevices.Login(customer.UserName, customer.Password); Assert.True(Result); }