public void Validate_GivenEmailAddressInUseByDifferentUser_ShouldHaveError()
            {
                _fakeUserManager.Setup(x => x.GetUserIdForEmailAddress("*****@*****.**")).Returns(456);
                EditContactInfoViewModel model = new EditContactInfoViewModel
                {
                    UserId       = 123,
                    EmailAddress = "*****@*****.**"
                };
                EditContactInfoViewModelValidator subject = _fixture.Create <EditContactInfoViewModelValidator>();

                subject.ShouldHaveValidationErrorFor(x => x.EmailAddress, model);
            }
            public void Validate_GivenEmptyFirstName_ShouldHaveError()
            {
                EditContactInfoViewModelValidator subject = _fixture.Create <EditContactInfoViewModelValidator>();

                subject.ShouldHaveValidationErrorFor(x => x.FirstName, null as string);
            }
            public void Validate_GivenInvalidEmailAddress_ShouldHaveError()
            {
                EditContactInfoViewModelValidator subject = _fixture.Create <EditContactInfoViewModelValidator>();

                subject.ShouldHaveValidationErrorFor(x => x.EmailAddress, "invalid email address");
            }
            public void Validate_GivenInvalidPhoneNumber_ShouldHaveError()
            {
                EditContactInfoViewModelValidator subject = _fixture.Create <EditContactInfoViewModelValidator>();

                subject.ShouldHaveValidationErrorFor(x => x.PhoneNumber, "123 Invalid 456 Phone Number");
            }