public void HasErrors_False_WhenNoUnhandledErrors() { var batch = new OperationBatch(context); var errors = Array.Empty <TableOperationError>(); Assert.False(batch.HasErrors(errors)); }
public void HasErrors_True_WhenOtherErrors() { var batch = new OperationBatch(context); batch.OtherErrors.Add(new ApplicationException()); var errors = Array.Empty <TableOperationError>(); Assert.True(batch.HasErrors(errors)); }
public void HasErrors_False_WhenHandledErrors() { var batch = new OperationBatch(context); var op = new InsertOperation("movies", Guid.NewGuid().ToString()); var errors = new TableOperationError[] { new TableOperationError(op, context, null, null, null) { Handled = true } }; Assert.False(batch.HasErrors(errors)); }
public void HasErrors_False_WhenNullErrors() { var batch = new OperationBatch(context); Assert.False(batch.HasErrors(null)); }