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

              var service1PluginDefinition = new TestService1.PluginDefinition();
              Assert.IsInstanceOfType(service1PluginDefinition, typeof(IMyServicePlugin));
              Assert.IsInstanceOfType(service1PluginDefinition, typeof(MyServicePluginBase));

              service1PluginDefinition.Register(mockAppHost.Object);

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