Esempio n. 1
0
 // Fields
 // Results
 // Business constructor
 public IndividualProfile(
     Individual individual
     ,Profile profile
     )
 {
     InitializeResults();
     _individual = new PredecessorObj<Individual>(this, GetRoleIndividual(), individual);
     _profile = new PredecessorObj<Profile>(this, GetRoleProfile(), profile);
 }
Esempio n. 2
0
            public CorrespondenceFact CreateFact(FactMemento memento)
            {
                Profile newFact = new Profile(memento);

                // Create a memory stream from the memento data.
                using (MemoryStream data = new MemoryStream(memento.Data))
                {
                    using (BinaryReader output = new BinaryReader(data))
                    {
                        newFact._profileId = (string)_fieldSerializerByType[typeof(string)].ReadData(output);
                    }
                }

                return newFact;
            }
Esempio n. 3
0
 // Business constructor
 public Attendee(
     Conference conference
     ,Profile profile
     )
 {
     InitializeResults();
     _conference = new PredecessorObj<Conference>(this, GetRoleConference(), conference);
     _profile = new PredecessorObj<Profile>(this, GetRoleProfile(), profile);
 }