public void ConfirmRegistration_TokenIsNull()
        {
            var controller = new RegistrationController(mapper, mockUserService.Object);
            var result     = controller.ConfirmRegistration(1, null) as ViewResult;

            Assert.False((bool)result.ViewData["IsActivated"]);
        }
        public void ConfirmRegistration_TokenIsNotNull()
        {
            mockUserService.Setup(m => m.ActivateAccount(It.IsAny <long>(), It.IsAny <string>()))
            .Returns(1);

            var controller = new RegistrationController(mapper, mockUserService.Object);
            var result     = controller.ConfirmRegistration(1, "cd-2a-hk") as ViewResult;

            Assert.True((bool)result.ViewData["IsActivated"]);
            Assert.False((bool)result.ViewData["Error"]);
        }