Exemple #1
0
        public void Read_ReadFromConfiguration_ReturnsHelloWorld()
        {
            var readService = new ReadService();

            var message = readService.Read();

            Assert.AreEqual(message.Message, "Hello World");
        }
Exemple #2
0
        static void Main(string[] args)
        {
            ReadService   readService = new ReadService();
            IWriteService writeService;

            var message = readService.Read();

            writeService = GetWriteServiceFromConfiguration();

            writeService.Write(message);

            Console.ReadKey();
        }
Exemple #3
0
 public HelloWorldController()
 {
     readService = new ReadService();
     message     = readService.Read();
 }