GetRedeemedRouteValues() static private méthode

static private GetRedeemedRouteValues ( System.Guid token, EmailConfirmationIntent intent ) : RouteValueDictionary
token System.Guid
intent EmailConfirmationIntent
Résultat RouteValueDictionary
Exemple #1
0
            public void ReturnsRouteValues_ForCreatePasswordIntent()
            {
                var token = Guid.NewGuid();
                const EmailConfirmationIntent intent = EmailConfirmationIntent.CreatePassword;

                var result = ConfirmEmailController.GetRedeemedRouteValues(token, intent);

                result.ShouldNotBeNull();
                result["area"].ShouldEqual(MVC.Identity.Name);
                result["controller"].ShouldEqual(MVC.Identity.CreatePassword.Name);
                result["action"].ShouldEqual(MVC.Identity.CreatePassword.ActionNames.Get);
                result["token"].ShouldEqual(token);
            }