Beispiel #1
0
        private int DaysOfTrialRemaining()
        {
            var trialStartDate = registry.EnsureValueExists(Location, TrialStartKeyName, clock.GetCurrentDate());
            var expiryDate     = trialStartDate.AddDays(NumberOfDaysInTrial);

            return((int)(expiryDate - clock.GetCurrentDate()).TotalDays);
        }