public static EventFlowValidator <SimpleExecuteResult> AddSimpleExecuteQueryResultValidator( this EventFlowValidator <SimpleExecuteResult> efv, TestResultSet[] testData) { return(efv.AddResultValidation(p => { Assert.Equal(p.RowCount, testData[0].Rows.Count); })); }
public static EventFlowValidator <QueryDisposeResult> AddStandardQueryDisposeValidator( this EventFlowValidator <QueryDisposeResult> evf) { // We just need to make sure that the result is not null evf.AddResultValidation(Assert.NotNull); return(evf); }
public static EventFlowValidator <SaveResultRequestResult> AddStandardResultValidator( this EventFlowValidator <SaveResultRequestResult> efv) { return(efv.AddResultValidation(r => { Assert.NotNull(r); Assert.Null(r.Messages); })); }
public static EventFlowValidator<SerializeDataResult> AddStandardResultValidator( this EventFlowValidator<SerializeDataResult> efv) { return efv.AddResultValidation(r => { Assert.NotNull(r); Assert.Null(r.Messages); Assert.True(r.Succeeded); }); }
public static EventFlowValidator <ExecuteRequestResult> AddStandardQueryResultValidator( this EventFlowValidator <ExecuteRequestResult> efv) { // We just need to makes sure we get a result back, there's no params to validate return(efv.AddResultValidation(Assert.NotNull)); }