예제 #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>();
 }
예제 #2
0
 public StudentsRepository(RepositoryFilter filter, IDataSorter sorter)
 {
     this.courses        = new Dictionary <string, ICourse>();
     this.students       = new Dictionary <string, IStudent>();
     this.filter         = filter;
     this.sorter         = sorter;
     this.isDataInilized = false;
 }
예제 #3
0
        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();
        }
예제 #4
0
 public StudentsRepository(RepositoryFilter filter, RepositorySorter sorter)
 {
     this.filter           = filter;
     this.sorter           = sorter;
     this.studentsByCourse = new Dictionary <string, Dictionary <string, List <int> > >();
 }
예제 #5
0
 public StudentsRepository(RepositoryFilter filter, RepositorySorter sorter)
 {
     this.sorter = sorter;
     this.filter = filter;
 }
예제 #6
0
 public StudentsRepository(RepositoryFilter repositoryFilter, RepositorySorters repositorySorters)
 {
     this.repositoryFilter  = repositoryFilter;
     this.repositorySorters = repositorySorters;
 }