Beispiel #1
0
        public void Init()
        {
            var TestDataModel = new TestDataModel();
            var list          = new YearsList(TestDataModel.MockDataModel.Object);

            test = list.Create();
        }
        /// <summary>
        /// Generates a .FET file for use in the algorithm.
        /// </summary>
        /// <param name="outputDir">Output directory for the FET file.</param>
        /// <returns>Filename of the generated .FET file.</returns>
        public string GenerateFetFile(string outputDir)
        {
            // Init XML creator
            var xmlCreator = new XmlCreator(FetVersion);

            // Create FET file
            xmlCreator.AddToRoot(DaysList.Create());
            xmlCreator.AddToRoot(HoursList.Create());
            xmlCreator.AddToRoot(TeachersList.Create());
            xmlCreator.AddToRoot(SubjectsList.Create());
            xmlCreator.AddToRoot(YearsList.Create());
            xmlCreator.AddToRoot(ActivitiesList.Create());
            xmlCreator.AddToRoot(TimeConstraintsList.Create());
            xmlCreator.AddToRoot(SpaceConstraintsList.Create());
            xmlCreator.AddToRoot(RoomsList.Create());

            return(xmlCreator.Save(outputDir));
        }