public void Test() { Account.AccountClient svc = new Account.AccountClient(); svc.ChangePassword(); svc.Close(); }
public void Login() { Account.AccountClient svc = new Account.AccountClient(); //BusinessLogic.Account svc = new BusinessLogic.Account(); DataContracts.LoginRequest reg = new DataContracts.LoginRequest(); reg.Username = "******"; reg.Password = "******"; Assert.IsNotNull(svc.Login(reg)); svc.Close(); }
public void Register() { Account.AccountClient svc = new Account.AccountClient(); //BusinessLogic.Account svc = new BusinessLogic.Account(); DataContracts.RegisterRequest reg = new DataContracts.RegisterRequest(); reg.FirstName = "Luka"; reg.LastName = "Pejović"; reg.Username = "******"; reg.Email = "*****@*****.**"; reg.Password = "******"; Assert.IsNotNull(svc.Register(reg)); svc.Close(); }