public async void Name_Update_length()
        {
            Mock <IPipelineStatuRepository> pipelineStatuRepository = new Mock <IPipelineStatuRepository>();

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

            var validator = new ApiPipelineStatuRequestModelValidator(pipelineStatuRepository.Object);
            await validator.ValidateUpdateAsync(default(int), new ApiPipelineStatuRequestModel());

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

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

            var validator = new ApiPipelineStatuRequestModelValidator(pipelineStatuRepository.Object);
            await validator.ValidateCreateAsync(new ApiPipelineStatuRequestModel());

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