public void CanExecuteGetFromService_Greeting() { const string GREETING_STRING = "Hello, Thanks for your message: "; var service2PluginDefinition = new TestService1.Service1(); var theRequest = new Service1Request() { Text = "I'm Bob." }; var result = service2PluginDefinition.Get(theRequest); Assert.IsTrue(result.Greeting.Equals(string.Format("{0}{1}", GREETING_STRING, theRequest.Text))); }
public void CanCreateService() { var service1PluginDefinition = new TestService1.Service1(); Assert.IsInstanceOfType(service1PluginDefinition, typeof(IService)); Assert.IsInstanceOfType(service1PluginDefinition, typeof(MyServiceBase)); }