sdk/dotnet/test/Datasync.Common.Test/Mocks/MockOfflineStore.cs
/// <summary>
/// Returns items from the table.
/// </summary>
/// <param name="query">A query describing the items to be returned.</param>
/// <param name="cancellationToken">A <see cref="CancellationToken"/> to observe.</param>
/// <returns>A task that returns a page of items when complete.</returns>
Returns items from the table.
Returns items from the table .
public Task<JObject> GetItemAsync(string tableName, string id, CancellationToken cancellationToken = default)
        {
            if (ReadExceptionToThrow != null)
            {
                throw ReadExceptionToThrow;
            }
            var table = GetOrCreateTable(tableName);
            table.TryGetValue(id, out JObject item);
            return Task.FromResult(item);
        }
public Task < JObject > GetItemAsync ( string tableName , string id , CancellationToken cancellationToken = default ) { if ( ReadExceptionToThrow != null ) { throw ReadExceptionToThrow ; } var table = GetOrCreateTable ( tableName ) ; table . TryGetValue ( id , out JObject item ) ; return Task . FromResult ( item ) ; }
Returns items from the table.
Returns items from the table .
A task that returns a page of items when complete.
A task that returns a page of items when complete .
tableName
string
id
string
cancellationToken
CancellationToken
A  to observe.
A to observe .
query
A query describing the items to be returned.
A query describing the items to be returned .