public async void Name_Update_length()
        {
            Mock <IPersonTypeRepository> personTypeRepository = new Mock <IPersonTypeRepository>();

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

            var validator = new ApiPersonTypeServerRequestModelValidator(personTypeRepository.Object);
            await validator.ValidateUpdateAsync(default(int), new ApiPersonTypeServerRequestModel());

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

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

            var validator = new ApiPersonTypeServerRequestModelValidator(personTypeRepository.Object);
            await validator.ValidateCreateAsync(new ApiPersonTypeServerRequestModel());

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