public async void ShipperId_Update_Valid_Reference()
        {
            Mock <IPipelineStepRepository> pipelineStepRepository = new Mock <IPipelineStepRepository>();

            pipelineStepRepository.Setup(x => x.EmployeeByShipperId(It.IsAny <int>())).Returns(Task.FromResult <Employee>(new Employee()));

            var validator = new ApiPipelineStepServerRequestModelValidator(pipelineStepRepository.Object);
            await validator.ValidateUpdateAsync(default(int), new ApiPipelineStepServerRequestModel());

            validator.ShouldNotHaveValidationErrorFor(x => x.ShipperId, 1);
        }
        public async void Name_Update_length()
        {
            Mock <IPipelineStepRepository> pipelineStepRepository = new Mock <IPipelineStepRepository>();

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

            var validator = new ApiPipelineStepServerRequestModelValidator(pipelineStepRepository.Object);
            await validator.ValidateUpdateAsync(default(int), new ApiPipelineStepServerRequestModel());

            validator.ShouldHaveValidationErrorFor(x => x.Name, new string('A', 129));
        }
        public async void PipelineStepStatusId_Update_Invalid_Reference()
        {
            Mock <IPipelineStepRepository> pipelineStepRepository = new Mock <IPipelineStepRepository>();

            pipelineStepRepository.Setup(x => x.PipelineStepStatusByPipelineStepStatusId(It.IsAny <int>())).Returns(Task.FromResult <PipelineStepStatus>(null));

            var validator = new ApiPipelineStepServerRequestModelValidator(pipelineStepRepository.Object);

            await validator.ValidateUpdateAsync(default(int), new ApiPipelineStepServerRequestModel());

            validator.ShouldHaveValidationErrorFor(x => x.PipelineStepStatusId, 1);
        }