public void TestThat_EmailConfirmation_RedirectsToTheCorrectView()
        {
            var controller = new ResetPasswordController(Substitute.For<IUserProfileRepository>(), Substitute.For<IResetPasswordService>(), new EmailMessengerFactory(Substitute.For<IPostman>()));

            var result = (ViewResult)controller.EmailConfirmation("token");

            Assert.That(result.ViewName, Is.EqualTo("Step3"));
        }
        public void TestThat_EmailConfirmation_PassesTheSuppliedToken_ToTheView()
        {
            var controller = new ResetPasswordController(Substitute.For<IUserProfileRepository>(), Substitute.For<IResetPasswordService>(), new EmailMessengerFactory(Substitute.For<IPostman>()));

            var result = (ViewResult)controller.EmailConfirmation("token");

            var model = (ResetPasswordStepThreeModel)result.Model;
            Assert.That(model.ResetToken, Is.EqualTo("token"));
        }