public async void Name_Update_length()
        {
            Mock <IPipelineStepStatuRepository> pipelineStepStatuRepository = new Mock <IPipelineStepStatuRepository>();

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

            var validator = new ApiPipelineStepStatuRequestModelValidator(pipelineStepStatuRepository.Object);
            await validator.ValidateUpdateAsync(default(int), new ApiPipelineStepStatuRequestModel());

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

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

            var validator = new ApiPipelineStepStatuRequestModelValidator(pipelineStepStatuRepository.Object);
            await validator.ValidateCreateAsync(new ApiPipelineStepStatuRequestModel());

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