Пример #1
0
        private AsCampaign CampaignWithDiseasesNoSpecies(AsCampaign campaign)
        {
            campaign.strCampaignName    = "Initial Campaign";
            campaign.idfsCampaignStatus = (long)AsCampaignStatus.Open;

            if (campaign == null)
            {
                campaign = campaignAccessor.CreateNewT(manager, null);
            }

            for (int i = 0; i < 5; i++)
            {
                AsDisease disease = AsDisease.Accessor.Instance(null).CreateNewT(manager, campaign);
                disease.idfCampaign = campaign.idfCampaign;
                disease.Diagnosis   = disease.DiagnosisLookup[i];
                campaign.Diseases.Add(disease);
            }
            return(campaign);
        }
Пример #2
0
        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);
        }