示例#1
0
        private async Task <ContactForSponsor> BuildContactForSponsor()
        {
            var contactForSponsor = new ContactForSponsor();

            contactForSponsor.Id      = 999;
            contactForSponsor.Sponsor = await BuildSponsor();

            contactForSponsor.Person = await BuildPerson();

            contactForSponsor.DateWhenContacted  = DateTime.Now;
            contactForSponsor.Purpose            = "purpose for contact";
            contactForSponsor.RecordOfDiscussion = "this was discussed";
            contactForSponsor.Notes           = "notes for contact";
            contactForSponsor.LastUpdatedBy   = "edm";
            contactForSponsor.LastUpdatedDate = DateTime.Now;
            contactForSponsor.Notes           = "notes for doctype";

            return(contactForSponsor);
        }
        private ContactForSponsor BuildContactForSponsor()
        {
            var contactForSponsor = new ContactForSponsor();

            contactForSponsor.Id     = 1;
            contactForSponsor.Person = new Person()
            {
                Id = 1
            };
            contactForSponsor.Sponsor = new Sponsor()
            {
                Id = 1
            };
            contactForSponsor.Purpose            = "purpose of contact";
            contactForSponsor.RecordOfDiscussion = "discussion record";
            contactForSponsor.LastUpdatedBy      = "edm";
            contactForSponsor.LastUpdatedDate    = DateTime.Now;
            contactForSponsor.Notes = "notes for doctype";

            return(contactForSponsor);
        }