コード例 #1
0
        public void Test()
        {
            Account.AccountClient svc = new Account.AccountClient();
            svc.ChangePassword();

            svc.Close();
        }
コード例 #2
0
        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();
        }
コード例 #3
0
        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();
        }