Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            ITerminal             terminal             = new VT100();
            IPurchaseOrderService purchaseOrderService = new PurchaseOrderService();

            PurchaseOrderScreen screen = new PurchaseOrderScreen(purchaseOrderService, terminal);

            screen.Display();
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            IUnitOfWorkFactory uwf = new EFUnitOfWorkFactory();

            ITerminal             terminal             = new VT100();
            IPurchaseOrderService purchaseOrderService = new PurchaseOrderService(uwf);

            PurchaseOrderScreen screen = new PurchaseOrderScreen(purchaseOrderService, terminal);

            screen.Display();
        }
Ejemplo n.º 3
0
        static void Main(string[] args)
        {
            Assembly.Load("AcmeCorpEF");

            ITerminal             terminal             = new VT100();
            IPurchaseOrderService purchaseOrderService = new PurchaseOrderService();

            PurchaseOrderScreen screen = new PurchaseOrderScreen(purchaseOrderService, terminal);

            screen.Display();
        }