예제 #1
0
        public void Setup()
        {
            _device = new Dispositivo {
                Imei = "1234567890A", Id = 7890, Codigo = "SGH7100"
            };
            var employee = new Empleado {
                Empresa = new Empresa()
                {
                    Id = 123456789
                }, Linea = new Linea()
                {
                    Id = 123
                }
            };

            _daoFactoryMock = new Mock <DAOFactory>();
            _daoFactoryMock.Setup(x => x.DispositivoDAO.FindByImei(It.IsAny <string>())).Returns(_device);
            _daoFactoryMock.Setup(x => x.EmpleadoDAO.FindEmpleadoByDevice(It.IsAny <Dispositivo>())).Returns(employee);

            //_msmqTemplateMock = new Mock<MessageQueueTemplate>();
            //_msmqTemplateMock.Setup(x => x.ConvertAndSend(It.IsAny<object>()));

            _receptionService = new ReceptionService
            {
                DaoFactory = _daoFactoryMock.Object
            };
        }
예제 #2
0
 public ClinicService()
 {
     unityContainer = new UnityContainer();
     WCFConfig.Initialize(unityContainer);
     AuthorizationService = unityContainer.Resolve <IAuthorizationService>();
     CommonService        = unityContainer.Resolve <ICommonService>();
     AdminService         = unityContainer.Resolve <IAdminService>();
     ReceptionService     = unityContainer.Resolve <IReceptionService>();
 }
예제 #3
0
 public AuthController(IMapper mapper,
                       IReceptionService receptionService,
                       IAuthService authService,
                       IDoctorService doctorService)
 {
     _mapper           = mapper;
     _receptionService = receptionService;
     _authService      = authService;
     _doctorService    = doctorService;
 }
예제 #4
0
 public ReceptionsController(IMapper mapper,
                             IDoctorService doctorService,
                             IPatientService patientService,
                             IReceptionService receptionService)
 {
     _doctorService    = doctorService;
     _patientService   = patientService;
     _receptionService = receptionService;
     _mapper           = mapper;
 }
예제 #5
0
 public SchedulerViewModel(IReceptionService receptionService, IEventAggregator eventAggregator,
                           IDialogService dialogService, IStatusColor statusColor)
 {
     _receptionService = receptionService;
     _dialogService    = dialogService;
     _statusColor      = statusColor;
     InitializeResources();
     InitializeBookings();
     DeleteBookingCommand = new DelegateCommand <object>(ExecuteDelete);
     OpenEditor           = new DelegateCommand <object>(ExecuteOpenEditor);
 }
예제 #6
0
 public ReceptionViewModel(IReceptionService reception)
 {
     _reception = reception;
 }
예제 #7
0
 public ReceptionController(IReceptionService service)
 {
     _service = service;
 }
예제 #8
0
 public StatusColor(IReceptionService receptionService)
 {
     _receptionService = receptionService;
 }
예제 #9
0
 public ReceptionController(IMapper mapper, IReceptionService receptionService)
 {
     _mapper           = mapper;
     _receptionService = receptionService;
 }
 public MessageManager(IReceptionService receptionService)
 {
     _receptionService = receptionService ??
                         throw new ArgumentNullException(nameof(receptionService));
 }