Exemplo n.º 1
0
 // Fields
 // Results
 // Business constructor
 public Quit(
     Hire hire
     ,Turn turn
     )
 {
     InitializeResults();
     _hire = new PredecessorObj<Hire>(this, RoleHire, hire);
     _turn = new PredecessorObj<Turn>(this, RoleTurn, turn);
 }
Exemplo n.º 2
0
            public CorrespondenceFact CreateFact(FactMemento memento)
            {
                Hire newFact = new Hire(memento);

                // Create a memory stream from the memento data.
                using (MemoryStream data = new MemoryStream(memento.Data))
                {
                    using (BinaryReader output = new BinaryReader(data))
                    {
                    }
                }

                return newFact;
            }