public MainWindowVM( IBottomPanelVM bottomPanelVM, ICentralPanelVM centralPanelVM, ITotalCounterVM totalCounterVM, IInputController inputController) { BottomPanelVM = bottomPanelVM; CentralPanelVM = centralPanelVM; CentralPanelVM.ItemsPositionChanged += RequestScrollDown; TotalCounterVM = totalCounterVM; this.inputController = inputController; }
public ApplicationInitialization( ICentralPanelVM centralPanelVM, IMainRepository mainRepository, DailyTimeCalculation dailyTimeCalculation, ITotalCounterVM totalCounterVM, IMainWindowVM mainWindowVM) { this.centralPanelVM = centralPanelVM; this.mainRepository = mainRepository; this.dailyTimeCalculation = dailyTimeCalculation; this.totalCounterVM = totalCounterVM; this.mainWindowVM = mainWindowVM; }
public InputController( ICentralPanelVM centralPanelVM, ITimer timer, IMainRepository mainRepository, DailyTimeCalculation dailyTimeCalculation, ITotalCounterVM totalCounterVM, IBottomPanelVM bottomPanelVM) { this.centralPanelVM = centralPanelVM; this.timer = timer; this.mainRepository = mainRepository; this.dailyTimeCalculation = dailyTimeCalculation; this.totalCounterVM = totalCounterVM; this.bottomPanelVM = bottomPanelVM; this.bottomPanelVM.UserInputReceived += HandleUserInput; this.centralPanelVM.NoteCommandReceived += HandleNoteCommand; }
private ApplicationInitialization CreateApplicationInitialization( ICentralPanelVM centralPanelVM = null, IMainRepository mainRepository = null, ITotalCounterVM totalCounterVM = null, IMainWindowVM mainWindowVM = null) { if (totalCounterVM == null) { totalCounterVM = new Mock <ITotalCounterVM>().Object; } return(new ApplicationInitialization( centralPanelVM ?? new Mock <ICentralPanelVM>().Object, mainRepository ?? new Mock <IMainRepository>().Object, new DailyTimeCalculation(new TimeProvider()), totalCounterVM, mainWindowVM ?? new Mock <IMainWindowVM>().Object)); }