Exemplo n.º 1
0
        private bool dayCountPassed(RatingViewConfiguration ratingViewConfiguration)
        {
            var firstOpened = onboardingStorage.GetFirstOpened();

            if (firstOpened == null)
            {
                return(false);
            }

            var targetDayCount = ratingViewConfiguration.DayCount;
            var actualDayCount = (timeService.CurrentDateTime - firstOpened.Value).TotalDays;

            return(actualDayCount >= targetDayCount);
        }