public void UpdateUserFactsWhenUserHasNoTrackers_UserHasNoFactsInRepos() { var userId = Guid.NewGuid(); _statisticGenerator.UpdateUserFacts(userId); Assert.False(_multipleFactsRepository.IsContainFactsForUser(userId)); }
public IReadOnlyCollection <IMultipleTrackersFact> GetMultipleTrackersFacts(Guid userId) { if (!_multipleFactsRepository.IsContainFactsForUser(userId)) { throw new UserTrackersStatisticsNotFoundException(userId); } var statisticFacts = _multipleFactsRepository.ReadUserGeneralFacts(userId); return(statisticFacts); }