Beispiel #1
0
        public static List <EncounterType> GetTestEncounterTypes()
        {
            var encounterTypes = new List <EncounterType>();
            var encounterType  = GetEncounterType();

            foreach (var c in ConceptData.GetTestConcepts())
            {
                encounterType.AddConcept(c);
            }
            encounterTypes.Add(encounterType);

            return(encounterTypes);
        }
Beispiel #2
0
        public List <MConcept> GenerateTestConcepts()
        {
            GenerateTestModulesNoConcepts();
            var et = _modulesNoConcepts.First().EncounterTypes.First();

            _concepts = new List <MConcept>();
            foreach (var concept in ConceptData.GetTestConcepts())
            {
                concept.EncounterType = et;
                _uow.MConceptRepository.Save(concept);
                _uow.Commit();
                _concepts.Add(concept);
            }
            return(_concepts);
        }