public async Task ShouldLoadSavedOffset() { var offset = 100; await OffsetTracker.GetOffsetAsync(GetType()); await OffsetTracker.SaveOffsetAsync(GetType(), 10); await OffsetTracker.SaveOffsetAsync(GetType(), 50); await OffsetTracker.SaveOffsetAsync(GetType(), offset); var gotOffset = await OffsetTracker.GetOffsetAsync(GetType()); gotOffset.Should().Be(offset); }
public async Task InitialOffsetQueryShouldReturnZeroOffset() { var offset = await OffsetTracker.GetOffsetAsync(GetType()); offset.Should().Be(0); }