public FitbitController(ILogger logger, IConfig config, IFitbitService fitbitService, IBackgroundJobClient backgroundJobClient, IHangfireWork hangfireWork) { _logger = logger; _config = config; _fitbitService = fitbitService; _backgroundJobClient = backgroundJobClient; _hangfireWork = hangfireWork; }
//private Mock<IFitbitImporter> _fitbitMigrator; public FitbitControllerTests() { _logger = new Mock <ILogger>(); _config = new Mock <IConfig>(); _fitbitService = new Mock <IFitbitService>(); _backgroundJobClient = new Mock <IBackgroundJobClient>(); _fitbitWork = new Mock <IFitbitWork>(); _healthService = new Mock <IHealthService>(); _calendar = new Mock <ICalendar>(); //_fitbitMigrator = new Mock<IFitbitImporter>(); //todo do we need real HangfirWrok to test? _hangfireWork = new HangfireWork(_logger.Object, _fitbitWork.Object); _fitbitController = new FitbitController(_logger.Object, _config.Object, _fitbitService.Object, _backgroundJobClient.Object, _hangfireWork); }