コード例 #1
0
ファイル: FormTestCanada.cs プロジェクト: royedwards/DRDNet
        private void FillObjects()
        {
            textResults.Text = "";
            Application.DoEvents();
            Cursor = Cursors.WaitCursor;
            if (!DatabaseTools.SetDbConnection("canadatest"))             //if database doesn't exist
            //MessageBox.Show("Database canadatest does not exist.");
            {
                DatabaseTools.SetDbConnection("");
                textResults.Text += DatabaseTools.FreshFromDump();              //this also sets database to be unittest.
            }
            else
            {
                textResults.Text += DatabaseTools.ClearDb();
            }
            Prefs.RefreshCache();
            List <Userod> listUsers = Userods.GetAll();

            Security.CurUser  = listUsers[0];
            textResults.Text += ProviderTC.SetInitialProviders();
            Application.DoEvents();
            textResults.Text += CarrierTC.SetInitialCarriers();
            Application.DoEvents();
            textResults.Text += PatientTC.SetInitialPatients();
            Application.DoEvents();
            textResults.Text += ClaimTC.CreateAllClaims();
            Application.DoEvents();
            textResults.Text += PredeterminationTC.CreateAllPredeterminations();
            Application.DoEvents();
        }
コード例 #2
0
        public static void ClearPasswords()
        {
            var users = Userods.GetAll();

            users.ForEach(x => { x.Password = ""; Userods.Update(x); });
        }