예제 #1
0
        private void TemporaryStorage_SelectTest(Guid id, SignalEvent <long> expectedSignalEvent)
        {
            var temporaryStorageParameters = new TemporaryStorageParameters()
            {
                QueueType     = NotificationsConstants.TS_DISPATCH_QUEUE_KEY,
                EntityVersion = NotificationsConstants.TS_ENTITIES_VERSION
            };

            Dictionary <Guid, SignalEvent <long> > eventsList = _tempStorage
                                                                .Select(temporaryStorageParameters);
            SignalEvent <long> actualEvent = eventsList[id];

            actualEvent.TemplateDataDict["customer"].ShouldBe("Crabs");
            actualEvent.PredefinedAddresses[0].Address.ShouldBe("address");
        }