Пример #1
0
        public void POST_Login_ExistingValid_RedirectsToCatalogusAndSignsIn()
        {
            ActionResult actionResult = controller.Login(CreateViewModel(EXISTING_VALID_USERNAME, EXISTING_VALID_PASSWORD), "");

            actionResult.AssertRedirectActionTo("Index", "Catalogus");
            mockApplicationSignInManager.Verify(m => m.SignInAsync(It.IsAny <ApplicationUser>(), false, false), Times.Never);
        }
Пример #2
0
        public void POST_Login_NewValid_RedirectsToCatalogus()
        {
            ActionResult actionResult = controller.Login(CreateViewModel(NEW_VALID_USERNAME, NEW_VALID_PASSWORD), "");

            actionResult.AssertRedirectActionTo("Index", "Catalogus");
        }