public void Read_ReadFromConfiguration_ReturnsHelloWorld() { var readService = new ReadService(); var message = readService.Read(); Assert.AreEqual(message.Message, "Hello World"); }
static void Main(string[] args) { ReadService readService = new ReadService(); IWriteService writeService; var message = readService.Read(); writeService = GetWriteServiceFromConfiguration(); writeService.Write(message); Console.ReadKey(); }
public HelloWorldController() { readService = new ReadService(); message = readService.Read(); }