Ejemplo n.º 1
0
 // Business constructor
 public Candidate(
     Round round
     ,int skill
     ,int relationship
     )
 {
     _unique = Guid.NewGuid();
     InitializeResults();
     _round = new PredecessorObj<Round>(this, RoleRound, round);
     _skill = skill;
     _relationship = relationship;
 }
Ejemplo n.º 2
0
            public CorrespondenceFact CreateFact(FactMemento memento)
            {
                Round newFact = new Round(memento);

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

                return newFact;
            }
Ejemplo n.º 3
0
 // Business constructor
 public Turn(
     Company company
     ,Round round
     )
 {
     InitializeResults();
     _company = new PredecessorObj<Company>(this, RoleCompany, company);
     _round = new PredecessorObj<Round>(this, RoleRound, round);
 }
Ejemplo n.º 4
0
 // Results
 // Business constructor
 public Gig(
     Round round
     ,IEnumerable<Resource> resources
     ,int duration
     ,int term
     )
 {
     _unique = Guid.NewGuid();
     InitializeResults();
     _round = new PredecessorObj<Round>(this, RoleRound, round);
     _resources = new PredecessorList<Resource>(this, RoleResources, resources);
     _duration = duration;
     _term = term;
 }