Example #1
0
      private void GenerateForTestingSystemSeleniumTests()
      {
         var cacheProvider = container.Resolve<ICacheProvider>();

         IUserStorage userStorage = new FakeDatabaseUserStorage(container.Resolve<ILmsService>(), "lex");
         IUserStorage cachedUserStorage = new CachedUserStorage(userStorage,cacheProvider);
         var demoStorage = container.Resolve<IDemoStorage>();
         UserGenerator.GenerateForTestingSystemSeleniumTests(cachedUserStorage,demoStorage);

         var path = (new System.Uri(Assembly.GetExecutingAssembly().CodeBase)).AbsolutePath;
         path = path.Replace("IUDICO.LMS/Plugins/IUDICO.DataGenerator.DLL", "IUDICO.DataGenerator/Content/Disciplines/Testing discipline.zip");
         var databaseStorage = new FakeDatabaseDisciplineStorage(container.Resolve<ILmsService>(), "SeleniumTeacher");
         var storage = new CachedDisciplineStorage(databaseStorage, cacheProvider);

         var curriculumStorage = container.Resolve<ICurriculumStorage>();
         userStorage = container.Resolve<IUserStorage>();
         var disciplineStorage = container.Resolve<IDisciplineStorage>();
         DisciplineGenerator.SeleniumTestingSystemTestDiscipline(storage, path);
         CurriculumGenerator.CurriculumForSeleniumTestingSystem(curriculumStorage, disciplineStorage, userStorage);
      }
Example #2
0
      private void GenerateForSeleniumTests()
      {

        var cacheProvider = container.Resolve<ICacheProvider>();
        var courseStorage = container.Resolve<ICourseStorage>();


        CourseGenerator.GenerateAllCourses(courseStorage,cacheProvider);

        var databaseStorage = new FakeDatabaseDisciplineStorage(container.Resolve<ILmsService>(), "prof3");
        var storage = new CachedDisciplineStorage(databaseStorage, cacheProvider); 
        DisciplineGenerator.GenerateAllDisciplines(storage);
      }
Example #3
0
      private void GeneratePascal()
      {
         var cacheProvider = container.Resolve<ICacheProvider>();
         var path = (new System.Uri(Assembly.GetExecutingAssembly().CodeBase)).AbsolutePath;
         path = path.Replace("IUDICO.LMS/Plugins/IUDICO.DataGenerator.DLL", "IUDICO.DataGenerator/Content/Disciplines/Pascal.zip");
         var databaseStorage = new FakeDatabaseDisciplineStorage(container.Resolve<ILmsService>(), "OlehVukladachenko");
         var storage = new CachedDisciplineStorage(databaseStorage, cacheProvider);
         DisciplineGenerator.PascalDiscipline(storage, path);


         var curriculumStorage = container.Resolve<ICurriculumStorage>();
         var userStorage = container.Resolve<IUserStorage>();
         var disciplineStorage = container.Resolve<IDisciplineStorage>();
         CurriculumGenerator.PascalCurriculum(curriculumStorage, disciplineStorage, userStorage);
      }