public MarketerView() { InitializeComponent(); DataContext dataContext = new DataContext(); IUnitOfWork unitOfWork = new EFUnitOfWork(dataContext); IMarketerServices marketerServices = new MarketerServices(unitOfWork); MarketerController marketerController = new MarketerController(marketerServices); _marketerController = marketerController; }
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(); } }