/// <summary> /// Entry point of the application. /// </summary> public static void Main() { var usersFromDb = new UsersFromDbRepository(); var usersFromExcel = new UsersFromExcelRepository(); var usersFromStaticList = new UsersFromStaticListRepository(); var usersFromRepository = new UsersFromRepository(usersFromDb, usersFromExcel, usersFromStaticList); var userManager = new UserManager(usersFromRepository); var renderer = new ConsoleRenderer(); FitnessManager fitnessManager = new FitnessManagerConsole(userManager, renderer); fitnessManager.Start(); }
public MainWindow() { this.InitializeComponent(); var usersFromDb = new UsersFromDbRepository(); var usersFromExcel = new UsersFromExcelRepository(); var usersFromStaticList = new UsersFromStaticListRepository(); var usersFromRepository = new UsersFromRepository(usersFromDb, usersFromExcel, usersFromStaticList); var userManager = new UserManager(usersFromRepository); var fitnessManager = new FitnessManagerWpf(userManager); fitnessManager.Start(); }