public Resolver(string path) { daoAwardsAssotiations = new DALAwardsAssotiationsJSON(path); daoUsers = new DALUsersJSON(daoAwardsAssotiations, path); daoAwards = new DALAwardsJSON(daoAwardsAssotiations, path); daoEmblems = new EmblemsJSON(path); bllUsers = new BLOUsers(daoUsers); bllAwards = new BLOAwards(daoAwards); bllEmblems = new EmblemsBLL(daoEmblems); bllAwardsAssotiations = new BLOAwardsAssotiations(daoAwardsAssotiations); }
public PLConsole() { Resolver resolver = new Resolver(""); bllUsers = resolver.GetBLLUsers; bllAwards = resolver.GetBLLAwards; bllAwardsAssotiations = resolver.GetBLLAwardsAssotiations; // Эта секция добавлена для теста: if (!File.Exists("notfirstrun")) { bllUsers.AddUser("Вася", 38, new DateTime(1999, 12, 2)); bllUsers.AddUser("Коля", 28, new DateTime(1989, 5, 30)); bllAwards.AddAward("Награда за выслугу лет"); bllAwards.AddAward("Награда за ответственность"); File.Create("notfirstrun"); } ShowUserList(); }