Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DistributedCacheTestBuilder"/> class.
 /// </summary>
 /// <param name="testContext"><see cref="ComponentTestContext"/> containing data about the currently executed assertion chain.</param>
 public DistributedCacheTestBuilder(ComponentTestContext testContext)
     : base(testContext)
 {
     this.distributedCache           = this.GetDistributedCache();
     this.distributedCacheMock       = this.GetDistributedCacheMock();
     this.distributedCacheDictionary = this.GetDistributedCacheDictionary();
 }
Esempio n. 2
0
        private IDistributedCacheMock GetDistributedCacheMock()
        {
            if (this.distributedCacheMock == null)
            {
                this.distributedCacheMock = this.distributedCache.AsDistributedCacheMock();
            }

            return(this.distributedCacheMock);
        }