Пример #1
0
        public void TemporaryStorage_InsertTest()
        {
            var temporaryStorageParameters = new TemporaryStorageParameters()
            {
                QueueType     = NotificationsConstants.TS_DISPATCH_QUEUE_KEY,
                EntityVersion = NotificationsConstants.TS_ENTITIES_VERSION
            };
            var signalEvent = new SignalEvent <long>
            {
                TemplateDataDict = new Dictionary <string, string>
                {
                    { "customer", "Crabs" }
                },
                PredefinedAddresses = new List <DeliveryAddress>
                {
                    new DeliveryAddress
                    {
                        Address      = "address",
                        DeliveryType = 1,
                        Language     = "lang"
                    }
                }
            };
            Guid id = Guid.NewGuid();

            _tempStorage.Insert(temporaryStorageParameters, id, signalEvent);

            TemporaryStorage_SelectTest(id, signalEvent);
        }