Exemplo n.º 1
0
        public LoginResultModel POSTAccountLogin()
        {
            InitializeActions();
            Route  = "Login";
            Method = HttpVerbs.Post;
//            Agent = "Lisa";

            ExpectedResponseType           = typeof(LoginResultModel);
            ExpectedResponseHttpStatusCode = HttpStatusCode.OK;

            Entity = "LiginModel_Lisa";
            Body   = JSONData.GetEntityFromJSONFile(Entity);

            accountActions.ClearURLData();

            #region General Actions
            var loginResult = accountActions.RunAPI <LoginResultModel>(EndPoint, Route, Method, Body);
            #endregion

            Verification(accountActions, loginResult);

            LoginResult = loginResult;
            return(loginResult);
        }