Esempio n. 1
0
        public void ClearPendingState()
        {
            var numLogsToAdd           = 5;
            var limit                  = numLogsToAdd;
            var addedLogs              = PutNLogs(numLogsToAdd);
            var retrievedLogsFirstTry  = new List <Log>();
            var retrievedLogsSecondTry = new List <Log>();

            _storage.GetLogsAsync(StorageTestChannelName, limit, retrievedLogsFirstTry).RunNotAsync();
            _storage.ClearPendingLogState(StorageTestChannelName);
            _storage.GetLogsAsync(StorageTestChannelName, limit, retrievedLogsSecondTry).RunNotAsync();
            CollectionAssert.AreEquivalent(addedLogs, retrievedLogsFirstTry);
            CollectionAssert.AreEquivalent(addedLogs, retrievedLogsSecondTry);
        }