Esempio n. 1
0
 public DisenrollStudentCommandTests()
 {
     unitOfWorkSpy        = new UnitOfWorkSpy();
     studentRepositorySpy = unitOfWorkSpy.StudentRepositorySpy;
     courseRepositorySpy  = unitOfWorkSpy.CourseRepositorySpy;
     handler = new DisenrollStudentCommandHandler(unitOfWorkSpy);
 }
Esempio n. 2
0
 public RegisterStudentCommandTests()
 {
     unitOfWork           = new UnitOfWorkSpy();
     studentRepositorySpy = unitOfWork.StudentRepositorySpy;
     notificationService  = new NotificationServiceSpy();
     handler = new RegisterStudentCommandHandler(unitOfWork, notificationService);
 }
Esempio n. 3
0
 public TransferStudentCommandTests()
 {
     unitOfWorkSpy        = new UnitOfWorkSpy();
     studentRepositorySpy = unitOfWorkSpy.StudentRepositorySpy;
     courseRepositorySpy  = unitOfWorkSpy.CourseRepositorySpy;
     handler = new TransferStudentCommandHandler(unitOfWorkSpy);
 }
Esempio n. 4
0
 public UnregisterStudentCommandTests()
 {
     unitOfWorkSpy        = new UnitOfWorkSpy();
     studentRepositorySpy = unitOfWorkSpy.StudentRepositorySpy;
     handler = new UnregisterStudentCommandHandler(unitOfWorkSpy);
 }
Esempio n. 5
0
 public EditStudentDetailsCommandTests()
 {
     unitOfWorkSpy        = new UnitOfWorkSpy();
     studentRepositorySpy = unitOfWorkSpy.StudentRepositorySpy;
     handler = new EditStudentDetailsCommandHandler(unitOfWorkSpy);
 }