public async void Name_Update_length()
        {
            Mock <ICultureRepository> cultureRepository = new Mock <ICultureRepository>();

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

            var validator = new ApiCultureRequestModelValidator(cultureRepository.Object);
            await validator.ValidateUpdateAsync(default(string), new ApiCultureRequestModel());

            validator.ShouldHaveValidationErrorFor(x => x.Name, new string('A', 51));
        }
        private async void BeUniqueByName_Create_Not_Exists()
        {
            Mock <ICultureRepository> cultureRepository = new Mock <ICultureRepository>();

            cultureRepository.Setup(x => x.ByName(It.IsAny <string>())).Returns(Task.FromResult <Culture>(null));
            var validator = new ApiCultureRequestModelValidator(cultureRepository.Object);

            await validator.ValidateCreateAsync(new ApiCultureRequestModel());

            validator.ShouldNotHaveValidationErrorFor(x => x.Name, "A");
        }
        public async void Name_Create_null()
        {
            Mock <ICultureRepository> cultureRepository = new Mock <ICultureRepository>();

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

            var validator = new ApiCultureRequestModelValidator(cultureRepository.Object);
            await validator.ValidateCreateAsync(new ApiCultureRequestModel());

            validator.ShouldHaveValidationErrorFor(x => x.Name, null as string);
        }