private async void BeUniqueByName_Update_Not_Exists()
        {
            Mock <IProjectGroupRepository> projectGroupRepository = new Mock <IProjectGroupRepository>();

            projectGroupRepository.Setup(x => x.ByName(It.IsAny <string>())).Returns(Task.FromResult <ProjectGroup>(null));
            var validator = new ApiProjectGroupRequestModelValidator(projectGroupRepository.Object);

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

            validator.ShouldNotHaveValidationErrorFor(x => x.Name, "A");
        }
        public async void Name_Update_length()
        {
            Mock <IProjectGroupRepository> projectGroupRepository = new Mock <IProjectGroupRepository>();

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

            var validator = new ApiProjectGroupRequestModelValidator(projectGroupRepository.Object);
            await validator.ValidateUpdateAsync(default(string), new ApiProjectGroupRequestModel());

            validator.ShouldHaveValidationErrorFor(x => x.Name, new string('A', 201));
        }