static void Main(string[] args)
 {
     try
     {
         var         container = MyDiContainer.Container(new ApiLibDiContainer());
         IHelloAgent cmdAgent  = container.Resolve <IHelloAgent>("HelloCmdAgent");
         cmdAgent.SayHello();
         Console.ReadKey();
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.Message);
     }
 }
Beispiel #2
0
        public void testCsv()
        {
            string _reply = csvAgent.SayHello();

            Assert.Equal("Hi from Csv Agent", _reply);
        }
Beispiel #3
0
        public void testDb()
        {
            string _reply = dbAgent.SayHello();

            Assert.Equal("Hi from CMD Agent", _reply);
        }