public async void Name_Update_length()
        {
            Mock <IPaymentTypeRepository> paymentTypeRepository = new Mock <IPaymentTypeRepository>();

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

            var validator = new ApiPaymentTypeRequestModelValidator(paymentTypeRepository.Object);
            await validator.ValidateUpdateAsync(default(int), new ApiPaymentTypeRequestModel());

            validator.ShouldHaveValidationErrorFor(x => x.Name, new string('A', 129));
        }
        public async void Name_Create_null()
        {
            Mock <IPaymentTypeRepository> paymentTypeRepository = new Mock <IPaymentTypeRepository>();

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

            var validator = new ApiPaymentTypeRequestModelValidator(paymentTypeRepository.Object);
            await validator.ValidateCreateAsync(new ApiPaymentTypeRequestModel());

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