public static void Main() { Tester tester = new Tester(); IOManager iOManager = new IOManager(); StudentsRepository repo = new StudentsRepository(new RepositoryFilter(), new RepositorySorter()); CommandInterpreter currentdInterpreter = new CommandInterpreter(tester, repo, iOManager); InputReader reader = new InputReader(currentdInterpreter); reader.StartReadingCommands(); }
public static void Main() { Console.WriteLine(@"Please, enter ""help"" to recieve information about the commands available. ALL COMMANDS are lowercase only! See for examples in ""help"" section."); Console.WriteLine(); IContentComparer tester = new Tester(); IDirectoryManager ioManager = new IOManager(); IDatabase repo = new StudentsRepository(new RepositorySorter(), new RepositoryFilter()); IInterpreter currentInterpreter = new CommandInterpreter(tester, repo, ioManager); IReader reader = new InputReader(currentInterpreter); reader.StartReadingCommands(); }
static void Main(string[] args) { ////IOManager.TraverseDirectory(@"D:\Torrents"); //StudentsRepository.InitializeData(); ////StudentsRepository.GetAllStudentsFromCourse("Unity"); //StudentsRepository.GetStudentScoresFromCourse("Unity", "Ivan"); //Tester.CompareContent(@"D:\test1.txt", @"D:\test2.txt"); //IOManager.CreateDirectoryInCurrentFolder("*2"); //IOManager.TraverseDirectory(0); //IOManager.ChangeCurrentDirectoryAbsolute(@"C:\Windows"); //IOManager.TraverseDirectory(20); InputReader.StartReadingCommands(); }
public static void Main() { #region comments // These comments below are some tests that I used to use from C# Advanced course /* P1 Tests * IOManager.TraverseDirectory(@"D:\Downloads"); * * P2 Tests * StudentsRepository.InitializeData(); * StudentsRepository.GetAllStudentsByCourse("Unity"); * StudentsRepository.GetStudentMarkInCourse("Unity", "Ivan"); * * P3 Tests * Tester.CompareContent(@".\BashSoft-Resources\test1.txt", @".\BashSoft-Resources\test2.txt"); * Tester.CompareContent(@".\BashSoft-Resources\test1.txt", @".\BashSoft-Resources\test3.txt"); * * P4 Tests * IOManager.CreateDirectoryInCurrentFolder("Pesho"); * IOManager.TraverseDirectory(5); * IOManager.CreateDirectoryInCurrentFolder("Pesho"); * IOManager.ChangeCurrentDirectoryRelative("Pesho"); * IOManager.ChangeCurrentDirectoryAbsolute("Pesho"); * IOManager.ChangeCurrentDirectoryAbsolute(@"C:\Windows"); * IOManager.TraverseDirectory(20); * Tester.CompareContent("actual", "expecter"); * IOManager.CreateDirectoryInCurrentFolder("*2"); * * InputReader.StartReadingCommands(); */ #endregion IContentComparer tester = new Tester(); IDirectoryManager ioManager = new IOManager(); IDatabase repo = new StudentsRepository(new RepositoryFilters(), new RepositorySorters()); IInterpreter currentInterpreter = new CommandInterpreter(tester, repo, ioManager); IReader reader = new InputReader(currentInterpreter); reader.StartReadingCommands(); }
static void Main() { //1- //IOManager.TraverseDirectory(@"..\..\00.Bash Soft"); //2- //use data.txt for testing it: //StudentsRepository.InitializedData(); //StudentsRepository.GetAllStudentsFromCourses("Unity"); //StudentsRepository.GetStudentScoreFromCourses("Unity", "Ivan"); //3- //Tester.CompareContent(@"..\..\test1.txt", @"..\..\test2.txt"); //Tester.CompareContent(@"..\..\test2.txt", @"..\..\test3.txt"); //IOManager.CreateDirectoryInCurrentFolder("pesho"); //IOManager.ChangeCurrentDirectoryRelative("pesho"); //IOManager.ChangeCurrentDirectoryRelative(".."); //IOManager.TraverseDirectory(900); //4- //IOManager.ChangeCurrentDirectoryAbsolute(@"C:\Windows"); //IOManager.TraverseDirectory(20); //IOManager.CreateDirectoryInCurrentFolder("*2"); //IOManager.ChangeCurrentDirectoryRelative(".."); //IOManager.ChangeCurrentDirectoryRelative(".."); //IOManager.ChangeCurrentDirectoryRelative(".."); //IOManager.ChangeCurrentDirectoryRelative(".."); //IOManager.ChangeCurrentDirectoryRelative(".."); //IOManager.ChangeCurrentDirectoryRelative(".."); //IOManager.ChangeCurrentDirectoryRelative(".."); //IOManager.ChangeCurrentDirectoryRelative(".."); //IOManager.ChangeCurrentDirectoryRelative(".."); //5-8 InputReader.StartReadingCommands(); }
public static void Main() { //IOManager.TraverseDirectory(10); //StudentsRepository.InitializeData(); //StudentsRepository.GetAllStudentFromCourse("Unity"); //StudentsRepository.GetStudentScoresFromCourse("Unity", "Ivan"); //Tester.CompareContent(@"C:\Users\vradoyko\Desktop\user\test2.txt", @"C:\Users\vradoyko\Desktop\user\test3.txt"); //IOManager.CreateDirectoryInCurrentFolder("vasko"); //IOManager.ChangeCurrentDirectoryAbsolute(@"C:\windows"); //IOManager.ChangeCurrentDirectoryRelative(".."); //IOManager.TraverseDirectory(50); IContentComparer tester = new Tester(); IDirectoryManager ioManager = new IOManager(); IDatabase repo = new StudentsRepository(new RepositoryFilter(), new RepositorySorter()); IInterpreter cmdInterpreter = new CommandInterpreter(tester, repo, ioManager); IReader reader = new InputReader(cmdInterpreter); reader.StartReadingCommands(); }
static void Main(string[] args) { InputReader.StartReadingCommands(); }
public static void Main(string[] args) { #region AdvancedTests /// ///Testing Traversing A Folder ///Works /// //IOManager.TraverseDirectory(); /// ///Testing Get All Students ///Works kinda /// //StudentsRepository.InitializeData(); //StudentsRepository.GetAllStudentsFromCourse("Unity"); //StudentsRepository.GetStudentScoresFromCourse("Unity", "Ivan"); /// ///Testing Comparing Files ///Works /// //Tester.CompareContent(@"E:\Projects\BashSoft\BashSoft\BashSoft\resources\test2.txt" // , @"E:\Projects\BashSoft\BashSoft\BashSoft\resources\test3.txt"); // cmp E:\Projects\BashSoft\BashSoft\BashSoft\resources\test1.txt E:\Projects\BashSoft\BashSoft\BashSoft\resources\test2.txt /// ///Testing Creating Folders And Traversing Folders ///Works /// //IOManager.CreateDirectoryInCurrentFolder("*2"); //IOManager.ChangeCurrentDirectoryAbsolute(@"C:\Windows"); //IOManager.TraverseDirectory(20); /// ///Testing Going one folder up the hierarchy ///Works /// //IOManager.ChangeCurrentDirectoryRelative(".."); //IOManager.ChangeCurrentDirectoryRelative(".."); //IOManager.ChangeCurrentDirectoryRelative(".."); //IOManager.ChangeCurrentDirectoryRelative(".."); //IOManager.ChangeCurrentDirectoryRelative(".."); //IOManager.ChangeCurrentDirectoryRelative(".."); //IOManager.ChangeCurrentDirectoryRelative(".."); /// ///Testing InputReader and CommandInterpreter ///Works /// #endregion IContentComparer tester = new Tester(); IDirectoryManager ioManager = new IOManager(); IDatabase repo = new StudentsRepository(new RepositoryFilter(), new RepositorySorter()); IInterpreter currentInterpreter = new CommandInterpreter(tester, repo, ioManager); IReader reader = new InputReader(currentInterpreter); reader.StartReadingCommands(); /// ///Tips ///use cdrel resources ///then read files from there with readdb ///or help to see other commands /// }
public static void Main() { InputReader.StartReadingCommands(); }