public async void PipelineStepId_Create_Valid_Reference()
        {
            Mock <IHandlerPipelineStepRepository> handlerPipelineStepRepository = new Mock <IHandlerPipelineStepRepository>();

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

            var validator = new ApiHandlerPipelineStepRequestModelValidator(handlerPipelineStepRepository.Object);
            await validator.ValidateCreateAsync(new ApiHandlerPipelineStepRequestModel());

            validator.ShouldNotHaveValidationErrorFor(x => x.PipelineStepId, 1);
        }
        public async void HandlerId_Update_Valid_Reference()
        {
            Mock <IHandlerPipelineStepRepository> handlerPipelineStepRepository = new Mock <IHandlerPipelineStepRepository>();

            handlerPipelineStepRepository.Setup(x => x.GetHandler(It.IsAny <int>())).Returns(Task.FromResult <Handler>(new Handler()));

            var validator = new ApiHandlerPipelineStepRequestModelValidator(handlerPipelineStepRepository.Object);
            await validator.ValidateUpdateAsync(default(int), new ApiHandlerPipelineStepRequestModel());

            validator.ShouldNotHaveValidationErrorFor(x => x.HandlerId, 1);
        }