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

            PurchaseOrderScreen screen = new PurchaseOrderScreen(purchaseOrderService, terminal);

            screen.Display();
        }
Esempio 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();
        }
Esempio 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();
        }