public ViewModelLocator() { mediator = new Mediator(); dbContextFactory = new DefaultDbContextFactory(); teamBuddyRepository = new TeamBuddyRepository(dbContextFactory, _mapper); messageBoxService = new MessageBoxService(); }
public HomeTeamListViewModel(IMediator mediator, ITeamBuddyRepository teamBuddyRepository) { this.mediator = mediator; this.teamBuddyRepository = teamBuddyRepository; TeamSelectedCommand = new RelayCommand <TeamListModel>(TeamSelected); mediator.Register <LogInMessage>(ListUserTeams); mediator.Register <ReloadMyTeamsMessage>(ReloadMyTeams); }