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