private void CreateSessions() { AsSession assession = null; for (int i = 0; i < 10; i++) { assession = sessionAccessor.CreateNewT(manager, null); assession.Region = assession.RegionLookup[1]; if (i % 2 == 0) { AsSessionDisease disease = AsSessionDisease.Accessor.Instance(null).CreateNewT(manager, assession); disease.Diagnosis = disease.DiagnosisLookup[i + 1]; disease.SpeciesType = disease.SpeciesTypeLookup[i + 1]; disease.idfMonitoringSession = assession.idfMonitoringSession; assession.Diseases.Add(disease); } sessionAccessor.Post(manager, assession); } }
public override void MyTestInitialize() { base.MyTestInitialize(); campaignAccessor = AsCampaign.Accessor.Instance(null); campaign = campaignAccessor.CreateNewT(manager, null); Assert.IsNotNull(campaign); sessionAccessor = AsSession.Accessor.Instance(null); session = sessionAccessor.CreateNewT(manager, null); Assert.IsNotNull(session); sessionListAccesor = AsSessionListItem.Accessor.Instance(null); }