Beispiel #1
0
 public void Can_access_MQ_Restriction_when_using_ExecuteMessage()
 {
     using (var appHost = new BasicAppHost(typeof(MessageQueueRestrictionService).GetAssembly()).Init())
     {
         var request = new MessageQueueRestriction {
             Id = 1
         };
         var response = appHost.ExecuteMessage(new Message <MessageQueueRestriction>(request));
         Assert.That(((MessageQueueRestriction)response).Id, Is.EqualTo(1));
     }
 }
Beispiel #2
0
 public object Any(MessageQueueRestriction request) => request;