public async void RwType_Update_length()
        {
            Mock <IPostTypeRepository> postTypeRepository = new Mock <IPostTypeRepository>();

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

            var validator = new ApiPostTypeServerRequestModelValidator(postTypeRepository.Object);
            await validator.ValidateUpdateAsync(default(int), new ApiPostTypeServerRequestModel());

            validator.ShouldHaveValidationErrorFor(x => x.RwType, new string('A', 51));
        }
        public async void RwType_Create_null()
        {
            Mock <IPostTypeRepository> postTypeRepository = new Mock <IPostTypeRepository>();

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

            var validator = new ApiPostTypeServerRequestModelValidator(postTypeRepository.Object);
            await validator.ValidateCreateAsync(new ApiPostTypeServerRequestModel());

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