private IOperation GetCreateQueues() { if (_createQueues == null) { _createQueues = new CreateQueues(new TransactionRepository(), new Queues(GetApiController())); } return(_createQueues); }
private void Window_Initialized(object sender, EventArgs e) { string queueName = "MySQSQueue"; if (CreateQueues.CreateSQSQueue(queueName) && CreateQueues.CreateFIFOQueue(queueName)) { MessageBox.Show(string.Format("Queue {0} and Queue {0}.fifo created successfully", queueName)); } else { MessageBox.Show(string.Format("Failed to create queue {0} and queue {0}.fifo ", queueName)); } this.Close(); }
public void Create_RetrieveQueue_FillInsert(string currencyCode) { //arrange List <ResponseQueue> responseQueueList = new List <ResponseQueue>(); responseQueueList.Add(new ResponseQueue { acquirerId = "002222", acquirerRefNum = "05103246259000000000126", primaryAccountNum = "5123432112344321", claimId = "200002020654", clearingDueDate = "2016-02-11", clearingNetwork = "GCMS", createDate = "2016-02-11", dueDate = "2016-02-11", transactionId = "118411681", isAccurate = "true", isAcquirer = "true", isIssuer = "false", isOpen = "true", issuerId = "00000006195", lastModifiedBy = "system", lastModifiedDate = "2016-02-11", merchantId = "0024038000200", progressState = "CB1-4807-O-A-NEW", claimType = "Standard", claimValue = "25.00 " + currencyCode }); iQueuesMock.Setup(f => f.GetQueues(It.IsAny <long>(), It.IsAny <String>())).Returns(responseQueueList); iTransactionRepositoryMock.Setup(f => f.GetQueueData(It.IsAny <MscMcomQueue>())).Returns((MscMcomQueue)null); //act CreateQueues createQueues = new CreateQueues(iTransactionRepositoryMock.Object, iQueuesMock.Object); createQueues.Create(new MscMcomPool()); //assert }