public async void Name_Update_length()
        {
            Mock <IActionTemplateVersionRepository> actionTemplateVersionRepository = new Mock <IActionTemplateVersionRepository>();

            actionTemplateVersionRepository.Setup(x => x.Get(It.IsAny <string>())).Returns(Task.FromResult(new ActionTemplateVersion()));

            var validator = new ApiActionTemplateVersionRequestModelValidator(actionTemplateVersionRepository.Object);
            await validator.ValidateUpdateAsync(default(string), new ApiActionTemplateVersionRequestModel());

            validator.ShouldHaveValidationErrorFor(x => x.Name, new string('A', 201));
        }
        private async void BeUniqueByNameVersion_Update_Not_Exists()
        {
            Mock <IActionTemplateVersionRepository> actionTemplateVersionRepository = new Mock <IActionTemplateVersionRepository>();

            actionTemplateVersionRepository.Setup(x => x.ByNameVersion(It.IsAny <string>(), It.IsAny <int>())).Returns(Task.FromResult <ActionTemplateVersion>(null));
            var validator = new ApiActionTemplateVersionRequestModelValidator(actionTemplateVersionRepository.Object);

            await validator.ValidateUpdateAsync(default(string), new ApiActionTemplateVersionRequestModel());

            validator.ShouldNotHaveValidationErrorFor(x => x.Name, "A");
        }