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); } }
public void testCsv() { string _reply = csvAgent.SayHello(); Assert.Equal("Hi from Csv Agent", _reply); }
public void testDb() { string _reply = dbAgent.SayHello(); Assert.Equal("Hi from CMD Agent", _reply); }