Exemplo n.º 1
0
        private RoomService SetupRoomService()
        {
            RoomService roomService = new RoomService(_stubRepository.CreateRoomStubRepository(),
                                                      null,
                                                      _stubRepository.CreateEquipmentInRoomStubRepository(),
                                                      _stubRepository.CreateEquipmentStubRepository());

            return(roomService);
        }
        private EquipmentService SetupEquipmentService()
        {
            EquipmentService _equipmentService = new EquipmentService(_stubRepository.CreateEquipmentStubRepository(), _stubRepository.CreateEquipmentInRoomStubRepository(), _stubRepository.CreateExaminationStubRepository(), _stubRepository.CreateEquipmentTransferStubRepository(), _stubRepository.CreateEquipmentInExaminationRepository());

            return(_equipmentService);
        }
        private EquipmentController SetupEquipmentController()
        {
            EquipmentService         _equipmentService        = new EquipmentService(_stubRepository.CreateEquipmentStubRepository(), _stubRepository.CreateEquipmentInRoomStubRepository(), _stubRepository.CreateExaminationStubRepository());
            EquipmentTypeService     equipmentTypeService     = new EquipmentTypeService(_stubRepository.CreateEquipmentTypeStubRepository());
            EquipmentInRoomsService  equipmentInRoomsService  = new EquipmentInRoomsService(_stubRepository.CreateEquipmentInRoomStubRepository(), _equipmentService);
            EquipmentTransferService equipmentTransferService = new EquipmentTransferService(_stubRepository.CreateEquipmentTransferStubRepository());
            EquipmentController      _equipmentController     = new EquipmentController(_equipmentService, equipmentTypeService, equipmentInRoomsService, equipmentTransferService);

            return(_equipmentController);
        }