public void CanCreatePluginDefinitionAndRegisterPlugin()
        {
            var mockAppHost = new Mock<IAppHost>();
              mockAppHost.SetupAllProperties();
              mockAppHost.SetupGet(x => x.Routes).Returns(new ServiceRoutes());

              var service2PluginDefinition = new TestService2.PluginDefinition();
              Assert.IsInstanceOfType(service2PluginDefinition, typeof(IMyServicePlugin));
              Assert.IsInstanceOfType(service2PluginDefinition, typeof(MyServicePluginBase));

              service2PluginDefinition.Register(mockAppHost.Object);

              Assert.IsNotNull(mockAppHost.Object.Routes);
              Assert.IsTrue(((ServiceStack.ServiceHost.ServiceRoutes)(mockAppHost.Object.Routes)).RestPaths.Count > 0);
        }
 public void CanCreatePluginDefinition()
 {
     var service2PluginDefinition = new TestService2.PluginDefinition();
       Assert.IsInstanceOfType(service2PluginDefinition, typeof(IMyServicePlugin));
       Assert.IsInstanceOfType(service2PluginDefinition, typeof(MyServicePluginBase));
 }