Ejemplo n.º 1
0
 public void SetUp()
 {
     _repository             = new Mock <IClassroomRepository>();
     _handler                = new ClassroomHandler(_repository.Object);
     _createClassroomCommand = new CreateClassroomCommand()
     {
         DayOfWeek = DayOfWeek.Friday,
         Start     = _baseDate.AddHours(13),
         End       = _baseDate.AddHours(15),
     };
 }
 public ClassroomController(IClassroomRepository repository, ClassroomHandler handler)
 {
     _repository = repository;
     _handler    = handler;
 }