public async void CountryRegionName_Update_null()
        {
            Mock <IVStateProvinceCountryRegionRepository> vStateProvinceCountryRegionRepository = new Mock <IVStateProvinceCountryRegionRepository>();

            vStateProvinceCountryRegionRepository.Setup(x => x.Get(It.IsAny <int>())).Returns(Task.FromResult(new VStateProvinceCountryRegion()));

            var validator = new ApiVStateProvinceCountryRegionRequestModelValidator(vStateProvinceCountryRegionRepository.Object);
            await validator.ValidateUpdateAsync(default(int), new ApiVStateProvinceCountryRegionRequestModel());

            validator.ShouldHaveValidationErrorFor(x => x.CountryRegionName, null as string);
        }
        public async void CountryRegionCode_Create_length()
        {
            Mock <IVStateProvinceCountryRegionRepository> vStateProvinceCountryRegionRepository = new Mock <IVStateProvinceCountryRegionRepository>();

            vStateProvinceCountryRegionRepository.Setup(x => x.Get(It.IsAny <int>())).Returns(Task.FromResult(new VStateProvinceCountryRegion()));

            var validator = new ApiVStateProvinceCountryRegionRequestModelValidator(vStateProvinceCountryRegionRepository.Object);
            await validator.ValidateCreateAsync(new ApiVStateProvinceCountryRegionRequestModel());

            validator.ShouldHaveValidationErrorFor(x => x.CountryRegionCode, new string('A', 4));
        }