Exemple #1
0
 public StudentRepository(RepositoryFilter filter, RepositorySorter sorter)
 {
     this.filter   = filter;
     this.sorter   = sorter;
     this.students = new Dictionary <string, Student>();
     this.courses  = new Dictionary <string, Course>();
 }
 public StudentsRepository(RepositoryFilter filter, RepositorySorter sorter)
 {
     this.courses        = new Dictionary <string, ICourse>();
     this.students       = new Dictionary <string, IStudent>();
     this.filter         = filter;
     this.sorter         = sorter;
     this.isDataInilized = false;
 }
        public static void Main()
        {
            IContentComparer  tester      = new Tester();
            IDirectoryManager manager     = new IOManager();
            IDataFilter       filter      = new RepositoryFilter();
            IDataSorter       sorter      = new RepositorySorter();
            IDatabase         repository  = new StudentRepository(filter, sorter);
            IInterpreter      interpreter = new CommandInterpreter(tester, repository, manager);
            IReader           reader      = new InputReader(interpreter);

            reader.StartReadingCommands();
        }
Exemple #4
0
 public StudentsRepository(RepositoryFilter filter, RepositorySorter sorter)
 {
     this.filter           = filter;
     this.sorter           = sorter;
     this.studentsByCourse = new Dictionary <string, Dictionary <string, List <int> > >();
 }
 public StudentsRepository(RepositoryFilter filter, RepositorySorter sorter)
 {
     this.sorter = sorter;
     this.filter = filter;
 }