public void ResolveFailure()
        {
            Expect.Call(validatorMock.Validate()).Return(false);
            Expect.Call(resolverMock.Resolve()).Return(false);

            Repository.ReplayAll();
            var step = new ValidationSimpleStep(validatorMock, resolverMock);
            step.Run();
            Repository.VerifyAll();
        }
        public void SuccessfulValidate()
        {
            Expect.Call(validatorMock.Validate()).Return(true);
            Expect.Call(resolverMock.Resolve()).Repeat.Never();

            Repository.ReplayAll();
            var step = new ValidationSimpleStep(validatorMock, resolverMock);
            step.Run();
            Repository.VerifyAll();
        }
        public void EmptyValidatorFailure()
        {
            Expect.Call(validatorMock.Validate()).Repeat.Never();
            Expect.Call(resolverMock.Resolve()).Repeat.Never();

            Repository.ReplayAll();
            var step = new ValidationSimpleStep(null, resolverMock);
            step.Run();
            Repository.VerifyAll();
        }
        public void ValidationFailureEmptyResolver()
        {
            Expect.Call(validatorMock.Validate()).Return(false);
            Expect.Call(resolverMock.Resolve()).Repeat.Never();

            Repository.ReplayAll();
            var step = new ValidationSimpleStep(validatorMock, null);
            step.Run();
            Repository.VerifyAll();
        }