private PatchApplierTest CreateExecuterThatFails() { _executer = new Mocks.MockExecuter(new Exception("Execution failed")); return this; }
private PatchApplierTest CreateExecuterThatErrorsOnExecuteQuery() { _executer = new Mocks.MockExecuter( new List<Common.Execution.Result> { Common.Execution.Result.CreateSuccessfulResult(), }, Common.Execution.QueryResult.CreateFailResult(new Exception("Execute Query Failed"))); return this; }
private PatchApplierTest CreateExecuterThatProducesAlreadyPatchedResultValidationOnExecuteQuery() { _executer = new Mocks.MockExecuter( new List<Common.Execution.Result> { Common.Execution.Result.CreateSuccessfulResult(), }, Common.Execution.QueryResult.CreateSuccessfulResult(new List<Int32> { 1, })); return this; }
private PatchApplierTest CreateExecuterThatErrorsAfterFirstExecute() { _executer = new Mocks.MockExecuter( new List<Common.Execution.Result> { Common.Execution.Result.CreateSuccessfulResult(), Common.Execution.Result.CreateFailResult(new Exception("Execution failed")), }); return this; }