public void ShouldHaveErrorWhenAccountUnlockCodeIsInvalid(string accountUnlockCode)
        {
            // Arrange.
            var viewModel = new AccountUnlockViewModel
            {
                AccountUnlockCode = accountUnlockCode
            };

            var validator = new AccountUnlockViewModelClientValidator();

            // Act.
            validator.Validate(viewModel);

            // Assert.
            validator.ShouldHaveValidationErrorFor(x => x.AccountUnlockCode, viewModel);
        }
        public void ShouldHaveErrorWhenEmailAddressIsNotSpecified(string emailAddress)
        {
            // Arrange.
            var viewModel = new AccountUnlockViewModel
            {
                EmailAddress = emailAddress
            };

            var validator = new AccountUnlockViewModelClientValidator();

            // Act.
            validator.Validate(viewModel);

            // Assert.
            validator.ShouldHaveValidationErrorFor(x => x.EmailAddress, viewModel);
        }