public void CanExecuteGetFromService_Add()
        {
            var service2PluginDefinition = new TestService2.Service2();

              var theRequest = new Service2Request() { Operation = "add", Num1 = 2, Num2 = 67 };

              var result = service2PluginDefinition.Get(theRequest);

              Assert.IsTrue(result.OperationResult.Equals(69));
        }
        public void CanExecuteGetFromService_Divide()
        {
            var service2PluginDefinition = new TestService2.Service2();

              var theRequest = new Service2Request() { Operation = "divide", Num1 = 9, Num2 = 3 };

              var result = service2PluginDefinition.Get(theRequest);

              Assert.IsTrue(result.OperationResult.Equals(3));
        }
        public void CanExecuteGetFromService_Exception()
        {
            var service2PluginDefinition = new TestService2.Service2();

              var theRequest = new Service2Request() { Operation = "exception_case", Num1 = 9, Num2 = 3 };

              var result = service2PluginDefinition.Get(theRequest);

              Assert.IsTrue(result.ResponseStatus.ErrorCode.Equals("-1"));
              Assert.IsTrue(result.OperationResult.Equals(0));
        }
 public void CanCreateService()
 {
     var service2PluginDefinition = new TestService2.Service2();
       Assert.IsInstanceOfType(service2PluginDefinition, typeof(IService));
       Assert.IsInstanceOfType(service2PluginDefinition, typeof(MyServiceBase));
 }