Example #1
0
 IActionResult IInboxAdapter.InboxesNextTransmission(string id)
 {
     try
     {
         var transmission = transmissionApi.GetNextTransmission(id);
         if (transmission == null)
         {
             return(StatusCode(204));
         }
         else
         {
             return(StatusCode(200, new InboxesTransmissionNextResponse200 {
                 Tid = transmission.Id.ToString(), Message = transmission.BinaryContent
             }));
         }
     }
     catch (ArgumentException)
     {
         return(StatusCode(404));
     }
 }
        public void NewTransmissionIsNotQueuedForRetrieval()
        {
            transmissions.CreateTransmission(existingInboxId);

            Assert.Null(transmissions.GetNextTransmission(existingInboxId));
        }