Exemplo n.º 1
0
        public void Login_PositivePath()
        {
            var targetUrl = "http://localhost:51138/account/login";

            var token = GeekyRestCalls.GetAntiforgeryToken(targetUrl);

            var model = new LoginViewModel
            {
                Password = "******",
                UserName = "******",
                __RequestVerificationToken = token
            };

            var data = JsonConvert.SerializeObject(model);

            var resp = GeekyRestCalls.HttpPost(targetUrl, data);

            Assert.IsNotNull(resp, "Register MVC Post is null.");
        }
Exemplo n.º 2
0
        public void Register_PositivePath()
        {
            var targetUrl = "http://*****:*****@defaultEmailRKBW1YNX.com','UserName':'******','PhoneNumber':'1234567890','Password':'******','ConfirmPassword':'******'}";

            regModel.Email = RandomGenerator.Email(regModel.UserName);

            var data = JsonConvert.SerializeObject(regModel);

            var resp = GeekyRestCalls.HttpPost(targetUrl, strData);

            Assert.IsNotNull(resp, "Register MVC Post is null.");
        }