sdk/dotnet/test/Datasync.Common.Test/Mocks/MockOfflineStore.cs
/// <summary>
/// Determines if the operations queue contains the specified item.
/// </summary>
/// <param name="kind">The kind.</param>
/// <param name="tableName">Name of the table.</param>
/// <param name="itemId">The item identifier.</param>
/// <returns></returns>
Determines if the operations queue contains the specified item.
Determines if the operations queue contains the specified item .
public JObject FindInQueue(TableOperationKind kind, string tableName, string itemId)
        {
            int opKind = (int)kind;
            if (!TableMap.ContainsKey(SystemTables.OperationsQueue))
            {
                throw new InvalidOperationException("Operations Queue has not been initialized.");
            }
            return TableMap[SystemTables.OperationsQueue].Values
                .SingleOrDefault(v => v.Value<int>("kind") == opKind && v.Value<string>("tableName") == tableName && v.Value<string>("itemId") == itemId);
        }
public JObject FindInQueue ( TableOperationKind kind , string tableName , string itemId ) { int opKind = ( int ) kind ; if ( ! TableMap . ContainsKey ( SystemTables . OperationsQueue ) ) { throw new InvalidOperationException ( " " ) ; } return TableMap [ SystemTables . OperationsQueue ] . Values . SingleOrDefault ( v => v . Value < int > ( " " ) == opKind && v . Value < string > ( " " ) == tableName && v . Value < string > ( " " ) == itemId ) ; }
Determines if the operations queue contains the specified item.
Determines if the operations queue contains the specified item .
None
kind
TableOperationKind
None
tableName
string
Name of the table.
Name of the table .
itemId
string
The item identifier.
The item identifier .