public CalendarService() { _calendarContainer = new CalendarContainer(); _itemsController = new ItemsController(); _itemsStorage = new ItemsStorage(_itemsController); _itemProcessing = new ItemProcessing(_itemsStorage, _itemsController, _calendarContainer); }
public ItemProcessing(ItemsStorage itemsStorage, ItemsController itemsController, CalendarContainer calendar) { _itemsStorage = itemsStorage; _itemsController = itemsController; _calendarContainer = calendar; _task = Task.Factory.StartNew(ProcessItem); }