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

            return m_DateTimeWrapper;
        }