public void LoginTest() { var userData = new Mock <IUserRepositoryManager>(); var loginData = new UserBusinessManagerService(userData.Object); var loginModeldata = new LoginModel() { UserName = "******", Password = "******" }; ////Act var data = loginData.Login(loginModeldata); ////Assert Assert.NotNull(data); }
public void RegistrationTest() { var userData = new Mock <IUserRepositoryManager>(); var user = new UserBusinessManagerService(userData.Object); ////Object of RegistrationModel var registrationModelData = new RegistrationModel() { UserName = "******", FirstName = "FirstName", LastName = "LastName", EmailId = "EmailId", Password = "******", Image = "Image" }; ////Act var data = user.Registration(registrationModelData); ////Asert Assert.NotNull(data); }