public ThrottleAttribute(DateTimeBase dtWrapper, ICache cacheWrapper)
 {
     m_Cache = cacheWrapper;
     m_DateTimeWrapper = dtWrapper;
 }
Exemple #2
0
 public SitesRepository(IStackClientFactory clientFactory, ICache cache, DateTimeBase dateTime)
 {
     m_Factory = clientFactory;
     m_Cache = cache;
     m_DateTime = dateTime;
 }
        /// <summary>
        /// Wrapper around datetime for testing purposes
        /// </summary>
        DateTimeBase GetDateTimeWrapper()
        {
            if (m_DateTimeWrapper == null)
                m_DateTimeWrapper = new DateTimeBase();

            return m_DateTimeWrapper;
        }