public void WhenACreateImageExchangeFileRequestIsAddedToTheQueueWithJobIdentifier(string targetEndPoint, int sequenceNumber)
        {
            var jobIdentifier = ScenarioContext.Current.Get<string>("jobIdentifier");

            var createImageExchangeFileRequest = new CreateImageExchangeFileRequest
            {
                businessDate = DateTime.Today,
                jobIdentifier = jobIdentifier,
                sequenceNumber = sequenceNumber,
                targetEndPoint = targetEndPoint
            };

            ScenarioContext.Current.Add("createImageExchangeFileRequests", createImageExchangeFileRequest);

            OutboundServiceBus.Publish(createImageExchangeFileRequest);
        }
Пример #2
0
        public static void Publish(CreateImageExchangeFileRequest request)
        {
            Requests.Add(request);

            Task.WaitAll(RequestPublisher.PublishAsync(request, null));
        }