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