Exemplo n.º 1
0
        public void UpdateUserFactsWhenUserHasNoTrackers_UserHasNoFactsInRepos()
        {
            var userId = Guid.NewGuid();

            _statisticGenerator.UpdateUserFacts(userId);

            Assert.False(_multipleFactsRepository.IsContainFactsForUser(userId));
        }
Exemplo n.º 2
0
        public IReadOnlyCollection <IMultipleTrackersFact> GetMultipleTrackersFacts(Guid userId)
        {
            if (!_multipleFactsRepository.IsContainFactsForUser(userId))
            {
                throw new UserTrackersStatisticsNotFoundException(userId);
            }

            var statisticFacts = _multipleFactsRepository.ReadUserGeneralFacts(userId);

            return(statisticFacts);
        }