Ejemplo n.º 1
0
 private void PrintOutput(IIoEngine reader)
 {
     foreach (Animal animal in animals)
     {
         reader.WriteLine(animal.ToString());
     }
 }
Ejemplo n.º 2
0
 public StudentSystem(IIoEngine ioEngine)
 {
     this.students = new StudentsDatabase();
     this.commands = new Dictionary <string, ICommand>();
     this.commands.Add("Create", new CreateCommand());
     this.commands.Add("Show", new ShowCommand(ioEngine));
     this.ioEngine = ioEngine;
 }
Ejemplo n.º 3
0
 public StudentSystem(IIoEngine ioEngine)
 {
     this.students = new StudentsDatabase();
     this.commands = new Dictionary <string, ICommand>
     {
         { "Create", new CreateCommand() },
         { "Show", new ShowCommand(ioEngine) },
         { "Delete", new DeleteCommand() }
     };
     this.ioEngine = ioEngine;
 }
Ejemplo n.º 4
0
 public Engine(IIoEngine ioEngine)
 {
     this.ioEngine = ioEngine;
     this.animals  = new List <Animal>();
 }
 public ShowCommand(IIoEngine engine)
 {
     this.engine = engine;
 }
Ejemplo n.º 6
0
 public ShowCommand(IIoEngine ioEngine)
 {
     this.ioEngine = ioEngine;
 }