public async Task Add_Criteria_Details_Test() { ICollection <CriteriaDetails> criteriaDetails = new List <CriteriaDetails>(); CriteriaDetails criteriaDetial = new CriteriaDetails(); criteriaDetial.ClientKey = "52d4ec2e-f608-4520-a853-d06ae860b019"; criteriaDetial.ClientLocationKey = "13ebf4f0-57a1-4a7f-bb40-85fdb1940fb8"; criteriaDetial.LastUserId = "kris.lindsey"; criteriaDetial.CriteriaSetKey = Guid.NewGuid(); criteriaDetial.DeviceId = "BCBS_CA"; criteriaDetial.IprKey = "PCBSCA01"; criteriaDetails.Add(criteriaDetial); using (IDbConnection smartAgentDb = new SqlConnection(ConfigurationManager.ConnectionStrings[_devAppConfigName].ConnectionString)) { IKernel kernel = new StandardKernel(new RepoTestsModule(smartAgentDb)); var repo = kernel.Get <IAsyncRepository <CriteriaDetails> >(); var result = await repo.AddAsync(criteriaDetails); } foreach (var client in criteriaDetails) { Console.WriteLine(client); } }
public void Navigate_To_Criteria() { //Login String[] featureList = { "Admission PoliciesandCriteria" }; FeatureBee.FeatureBeeLogin.LoginWithFeatureBee(featureList, FeatureBee.FeatureBeeLogin.iSIMSUserType.AdmissionsOfficer); AutomationSugar.NavigateMenu("Tasks", "Admissions", "Manage Criteria"); CriteriaDetails criteriadetails = new CriteriaDetails(); String criteriaTitle = criteriadetails.getCriteriaTitle(); Assert.IsTrue(criteriaTitle.Contains("Manage Criteria")); }
public void Create_Basic_Criteria() { //Login Navigate_To_Criteria(); CriteriaDetails criteriadetails = new CriteriaDetails(); criteriadetails.ClickAddCriteriaButton(); String criteriaName = criteriadetails.setCriteriaName(); String criteriaDescription = criteriadetails.setCriteriaDescription(); criteriadetails.ClickSaveButton(); criteriadetails.WaitForStatus(); PurgeLinkedData.DeletAdmissionCriteria(criteriaName); }
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(); } }
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); }