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 }; }
public ClinicService() { unityContainer = new UnityContainer(); WCFConfig.Initialize(unityContainer); AuthorizationService = unityContainer.Resolve <IAuthorizationService>(); CommonService = unityContainer.Resolve <ICommonService>(); AdminService = unityContainer.Resolve <IAdminService>(); ReceptionService = unityContainer.Resolve <IReceptionService>(); }
public AuthController(IMapper mapper, IReceptionService receptionService, IAuthService authService, IDoctorService doctorService) { _mapper = mapper; _receptionService = receptionService; _authService = authService; _doctorService = doctorService; }
public ReceptionsController(IMapper mapper, IDoctorService doctorService, IPatientService patientService, IReceptionService receptionService) { _doctorService = doctorService; _patientService = patientService; _receptionService = receptionService; _mapper = mapper; }
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); }
public ReceptionViewModel(IReceptionService reception) { _reception = reception; }
public ReceptionController(IReceptionService service) { _service = service; }
public StatusColor(IReceptionService receptionService) { _receptionService = receptionService; }
public ReceptionController(IMapper mapper, IReceptionService receptionService) { _mapper = mapper; _receptionService = receptionService; }
public MessageManager(IReceptionService receptionService) { _receptionService = receptionService ?? throw new ArgumentNullException(nameof(receptionService)); }