Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            IUnityContainer container = new UnityContainer();

            container.RegisterType <IDataAccess, DataAccess>();
            BuisnessLogic bl = container.Resolve <BuisnessLogic>();

            Console.WriteLine(bl.GetData(1));
            // DataService s = new DataService();
            // Console.WriteLine( s.GetData(1));
        }
 public string GetData(int id)
 {
     return(BL.GetData(id));
 }