Beispiel #1
0
 public static void Register()
 {
     if (!initialized)
     {
         MessageDefinitionService service = new MessageDefinitionServiceFactory().Create();
         if (service != null && service is CompositeMessageDefinitionService)
         {
             MockTestCaseMessageDefinitionService mockService = new MockTestCaseMessageDefinitionService();
             ((CompositeMessageDefinitionService)service).services.Add(mockService);
             initialized = true;
         }
     }
 }
Beispiel #2
0
        public virtual void ShouldProduceNonNullResult()
        {
            MessageDefinitionService service = new MockTestCaseMessageDefinitionService();

            Assert.IsNotNull(service, "service");
        }