public void Setup() { var appSettingValFromStatic = ConfigurationManager.AppSettings["mySetting"]; var username = ConfigurationManager.OpenExeConfiguration(Assembly.GetExecutingAssembly().Location).AppSettings.Settings["username"].Value; var password = ConfigurationManager.OpenExeConfiguration(Assembly.GetExecutingAssembly().Location).AppSettings.Settings["password"].Value; context = new BI.Context.BildStudionDVContext(username, password); usersDb = new UserProfiles(context); userVMLogic = new UserProfileVMLogic(usersDb); }
public void Setup() { var appSettingValFromStatic = ConfigurationManager.AppSettings["mySetting"]; var username = ConfigurationManager.OpenExeConfiguration(Assembly.GetExecutingAssembly().Location).AppSettings.Settings["username"].Value; var password = ConfigurationManager.OpenExeConfiguration(Assembly.GetExecutingAssembly().Location).AppSettings.Settings["password"].Value; context = new BI.Context.BildStudionDVContext(username, password); inventarieDb = new Inventarie(context); gruppDb = new Grupp(context, inventarieDb); enhetDb = new Enhet(context, gruppDb); }
public void Setup() { var appSettingValFromStatic = ConfigurationManager.AppSettings["mySetting"]; var username = ConfigurationManager.OpenExeConfiguration(Assembly.GetExecutingAssembly().Location).AppSettings.Settings["username"].Value; var password = ConfigurationManager.OpenExeConfiguration(Assembly.GetExecutingAssembly().Location).AppSettings.Settings["password"].Value; context = new BI.Context.BildStudionDVContext(username, password); närvaroDb = new Närvaro(context); deltagareDb = new Deltagare(context, närvaroDb); deltagareVMLogic = new DeltagareVMLogic(deltagareDb); närvaroVMLogic = new NärvaroVMLogic(närvaroDb, deltagareDb); }
public void Setup() { var appSettingValFromStatic = ConfigurationManager.AppSettings["mySetting"]; var username = ConfigurationManager.OpenExeConfiguration(Assembly.GetExecutingAssembly().Location).AppSettings.Settings["username"].Value; var password = ConfigurationManager.OpenExeConfiguration(Assembly.GetExecutingAssembly().Location).AppSettings.Settings["password"].Value; context = new BI.Context.BildStudionDVContext(username, password); delJobbDb = new DelJobb(context); jobbDb = new Jobb(context, delJobbDb); kundDb = new Kund(context, jobbDb); delJobbVMLogic = new DelJobbVMLogic(delJobbDb); jobbVmLogic = new JobbVMLogic(jobbDb, delJobbVMLogic); kundVmLogic = new KundVMLogic(kundDb, jobbVmLogic); }