public async Task GetDeltaTokenAsync_Exists_ReturnsData() { store.Upsert(SystemTables.Configuration, new[] { JObject.Parse(json) }); var actual = await sut.GetDeltaTokenAsync(testTBL, testQID); Assert.Equal(testDTO, actual.ToUniversalTime()); }
/// <summary> /// Stores the item provided in the table. /// </summary> /// <typeparam name="T">The type of the item.</typeparam> /// <param name="tableName">The name of the table.</param> /// <param name="item">The item to store.</param> public JObject StoreInTable <T>(string tableName, T item) { var instance = (JObject)GetMockClient().Serializer.Serialize(item); store.Upsert(tableName, new[] { instance }); return(instance); }