public AccelometerAlgorithmHelperServiceTests()
        {
            var fakeDbContext = new FakeLikkleDbContext().Seed();

            this._mockedLikkleUoW          = new Mock <ILikkleUoW>();
            this._configurationWrapperMock = new Mock <IConfigurationWrapper>();
            this._configurationWrapperMock.Setup(x => x.PersonWalkingSpeedInKmh).Returns(5);

            this._accelometerAlgorithmHelperService = new AccelometerAlgorithmHelperService(
                this._mockedLikkleUoW.Object,
                this._configurationWrapperMock.Object);
        }
Пример #2
0
 public UserService(
     ILikkleUoW uow,
     IConfigurationProvider configurationProvider,
     IConfigurationWrapper config,
     IAccelometerAlgorithmHelperService accelometerAlgorithmHelperService,
     ISubscriptionSettingsService subscriptionSettingsService)
 {
     this._unitOfWork    = uow;
     _mapper             = configurationProvider.CreateMapper();
     this._configuration = config;
     _accelometerAlgorithmHelperService = accelometerAlgorithmHelperService;
     _subscriptionSettingsService       = subscriptionSettingsService;
 }