Пример #1
0
        public void Delete_Criteria_without_policy()
        {
            //Login
            //Insert a Criteria into database
            Guid   criteriaId          = Guid.NewGuid();
            string criteriaName        = CoreQueries.GetColumnUniqueString("AdmissionsCriteria", "Name", 10, tenantID);
            string criteriaDescription = CoreQueries.GetColumnUniqueString("AdmissionsCriteria", "Description", 10, tenantID);

            using (new DataSetup(GetCriteriaRecord(criteriaId, criteriaName, criteriaDescription)))
            {
                //Act
                Navigate_To_Criteria();
                CriteriaDetails criteriadetails = new CriteriaDetails();
                criteriadetails.SearchByName(criteriaName);
                criteriadetails.ClickDeleteButton();
            }
        }
Пример #2
0
        public void Delete_Policy_WIthout_Criteria()
        {
            //Login
            PolicyDetails policydetails = new PolicyDetails();

            //Insert a policy into database
            Guid   policyId          = Guid.NewGuid();
            string policyName        = CoreQueries.GetColumnUniqueString("AdmissionsPolicy", "Name", 10, tenantID);
            string policyDescription = CoreQueries.GetColumnUniqueString("AdmissionsPolicy", "Description", 10, tenantID);

            using (new DataSetup(GetPolicyRecord(policyId, policyName, policyDescription)))
            {
                //Act
                Navigate_To_Policy();
                policydetails.SearchByName(policyName);
                policydetails.ClickDeleteButton();
            }
        }
Пример #3
0
        public void Search_Criteria_ByName()
        {
            //Insert a Criteria into database
            Guid   criteriaId          = Guid.NewGuid();
            string criteriaName        = CoreQueries.GetColumnUniqueString("AdmissionsCriteria", "Name", 10, tenantID);
            string criteriaDescription = CoreQueries.GetColumnUniqueString("AdmissionsCriteria", "Description", 10, tenantID);

            using (new DataSetup(GetCriteriaRecord(criteriaId, criteriaName, criteriaDescription)))
            {
                //Act
                //Login
                Navigate_To_Criteria();
                CriteriaDetails criteriadetails = new CriteriaDetails();
                criteriadetails.SearchByName(criteriaName);
            }
            //Purge created data
            PurgeLinkedData.DeletAdmissionCriteria(criteriaId);
        }
Пример #4
0
        public void Search_Policy_ByName()
        {
            //Login
            PolicyDetails policydetails = new PolicyDetails();

            //Insert a policy into database
            Guid   policyId          = Guid.NewGuid();
            string policyName        = CoreQueries.GetColumnUniqueString("AdmissionsPolicy", "Name", 10, tenantID);
            string policyDescription = CoreQueries.GetColumnUniqueString("AdmissionsPolicy", "Description", 10, tenantID);

            using (new DataSetup(GetPolicyRecord(policyId, policyName, policyDescription)))
            {
                //Act
                Navigate_To_Policy();
                policydetails.ClickAddPolicyButton();
                policydetails.SearchByName(policyName);
            }
            //Purge created data
            PurgeLinkedData.DeletAdmissionPolicy(policyId);
        }