public async Task Throws_when_modify_operations_are_posted_multiple_times() { var ex = await Assert.ThrowsAsync <InvalidOperationException>(async() => await Service.ProcessOperationsAsync(Context, NewOperations.Skip(1).ToArray(), "User")); Assert.Equal("Operations cannot be added to the store, were these operations already processed?", ex.Message); }
public async Task Does_not_throw_when_operations_are_posted_multiple_times() { await Service.ProcessOperationsAsync(Context, NewOperations.Skip(1).ToArray(), "User"); }