コード例 #1
0
ファイル: UserTests.cs プロジェクト: zesdev/BildstudionDV.SOL
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
        }
コード例 #4
0
ファイル: JobbTest.cs プロジェクト: zesdev/BildstudionDV.SOL
        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);
        }