public MarketerView()
        {
            InitializeComponent();

            DataContext dataContext = new DataContext();
            IUnitOfWork unitOfWork  = new EFUnitOfWork(dataContext);

            IMarketerServices  marketerServices   = new MarketerServices(unitOfWork);
            MarketerController marketerController = new MarketerController(marketerServices);

            _marketerController = marketerController;
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            DataContext dataContext = new DataContext();
            IUnitOfWork unitOfWork  = new EFUnitOfWork(dataContext);


            IMarketerServices  marketerServices   = new MarketerServices(unitOfWork);
            MarketerController marketerController = new MarketerController(marketerServices);
            View view = new View(marketerController);

            while (true)
            {
                view.MakeAction();
            }
        }