Пример #1
0
            public void OnSuccess(Key[] keys, Record[] records)
            {
                if (parent.AssertEquals(size, records.Length))
                {
                    for (int i = 0; i < records.Length; i++)
                    {
                        Record record = records[i];

                        if (!parent.AssertRecordFound(keys[i], record))
                        {
                            break;
                        }

                        if (!parent.AssertGreaterThanZero(record.generation))
                        {
                            break;
                        }

                        if (!parent.AssertGreaterThanZero(record.expiration))
                        {
                            break;
                        }
                    }
                }
                parent.NotifyCompleted();
            }
Пример #2
0
 public void OnSuccess(Key[] keys, bool[] existsArray)
 {
     for (int i = 0; i < existsArray.Length; i++)
     {
         if (!parent.AssertEquals(true, existsArray[i]))
         {
             break;
         }
     }
     parent.NotifyCompleted();
 }
Пример #3
0
 public void OnSuccess(Key[] keys, Record[] records)
 {
     if (parent.AssertEquals(size, records.Length))
     {
         for (int i = 0; i < records.Length; i++)
         {
             if (!parent.AssertBinEqual(keys[i], records[i], binName, valuePrefix + (i + 1)))
             {
                 break;
             }
         }
     }
     parent.NotifyCompleted();
 }
Пример #4
0
            public void OnSuccess(List <BatchRead> records)
            {
                int found = 0;
                int count = 0;

                foreach (BatchRead record in records)
                {
                    Record rec = record.record;
                    count++;

                    if (rec != null)
                    {
                        found++;

                        Object value = rec.GetValue(binName);

                        if (count != 4 && count <= 7)
                        {
                            if (!parent.AssertEquals(valuePrefix + count, value))
                            {
                                parent.NotifyCompleted();
                                return;
                            }
                        }
                        else
                        {
                            if (!parent.AssertNull(value))
                            {
                                parent.NotifyCompleted();
                                return;
                            }
                        }
                    }
                }
                parent.AssertEquals(8, found);
                parent.NotifyCompleted();
            }
Пример #5
0
 public void OnExists(Key key, bool exists)
 {
     parent.AssertEquals(true, exists);
 }