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 Service1Response Get(Service1Request request) { var response = new Service1Response() { ResponseStatus = new ResponseStatus(), Greeting = string.Format("Hello, Thanks for your message: {0}", request.Text) }; return response; }