예제 #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));
     }
 }