public async void Address2_Update_length()
        {
            Mock <IAddressRepository> addressRepository = new Mock <IAddressRepository>();

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

            var validator = new ApiAddressServerRequestModelValidator(addressRepository.Object);
            await validator.ValidateUpdateAsync(default(int), new ApiAddressServerRequestModel());

            validator.ShouldHaveValidationErrorFor(x => x.Address2, new string('A', 129));
        }
        public async void Address1_Create_null()
        {
            Mock <IAddressRepository> addressRepository = new Mock <IAddressRepository>();

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

            var validator = new ApiAddressServerRequestModelValidator(addressRepository.Object);
            await validator.ValidateCreateAsync(new ApiAddressServerRequestModel());

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