Exemplo n.º 1
0
        public void Should_be_able_to_reset_password()
        {
            var secretKey = System.Configuration.ConfigurationManager.AppSettings ["SecretKey"];
            var response  = userModule.PasswordReset(bus, dateService, secretKey, new PasswordResetPost {
                token       = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJlbWFpbCI6ImluZm9AcXVldWVzcHkuY29tIiwidXNlcklkIjoyLCJleHAiOjEzOTk0NjQwODB9.vJKXvXZYzOmdDPkYIp5E3B25HlD0_WAABlnAj17HVXA",
                newPassword = "******"
            });

            Assert.That(response == Nancy.HttpStatusCode.OK);
        }