private async void BeUniqueByName_Create_Not_Exists()
        {
            Mock <IAccountRepository> accountRepository = new Mock <IAccountRepository>();

            accountRepository.Setup(x => x.ByName(It.IsAny <string>())).Returns(Task.FromResult <Account>(null));
            var validator = new ApiAccountRequestModelValidator(accountRepository.Object);

            await validator.ValidateCreateAsync(new ApiAccountRequestModel());

            validator.ShouldNotHaveValidationErrorFor(x => x.Name, "A");
        }
        public async void Name_Update_length()
        {
            Mock <IAccountRepository> accountRepository = new Mock <IAccountRepository>();

            accountRepository.Setup(x => x.Get(It.IsAny <string>())).Returns(Task.FromResult(new Account()));

            var validator = new ApiAccountRequestModelValidator(accountRepository.Object);
            await validator.ValidateUpdateAsync(default(string), new ApiAccountRequestModel());

            validator.ShouldHaveValidationErrorFor(x => x.Name, new string('A', 201));
        }