Esempio n. 1
0
from Base.StudentBase import *
from Controller.DisciplineController import *
from Controller.StudentController import *
from Controller.GradeController import *
from Controller.UndoController import *
from BaseFile.FileGradeBase import *
from BaseFile.FileStudentBase import *
from UI.UI import *
import operator
import collections

gb = GradeBase()
db = DisciplineBase()
fgb = FileGradeBase()
fsb = FileStudentBase()
sb = StudentBase()
db.add(Discipline("FPcurs"))
db.add(Discipline("FPlab"))
db.add(Discipline("FPseminar"))
db.add(Discipline("Logica"))
db.add(Discipline("ASC"))
db.add(Discipline("Algebra"))
db.add(Discipline("Analiza"))
a = input("Press 1 for nonfile or 2 for file.")
if int(a) == 2:
    undoCtrl = UndoController()
    sc = StudentController(fsb, undoCtrl)

    gc = GradeController(fgb, undoCtrl)
    dc = DisciplineController(db)
    sts = StatisticsController(gc, sc, dc)
Esempio n. 2
0
 def setUp(self):
     repo = StudentBase()
     undo = UndoController()
     self.ctrl = StudentController(repo, undo)
 def setUp(self):
     self.studentbase = StudentBase()
     s1 = Student(1, 'Chris')
     self.studentbase.add(s1)
     s2 = Student(2, 'test')
     self.studentbase.add(s2)