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