public void TestICacheMediaSecureKeys()
 {
     ICacheMediaSecureKeys cache = new DeliveryCacheRuntime();
     IDictionary<Guid, Guid> meidaSecureKeys = new Dictionary<Guid, Guid>();
     var expected = meidaSecureKeys;
     cache.SetMediaSecureKeys(meidaSecureKeys);
     var actual = cache.GetMediaSecureKeys();
     Assert.AreEqual(expected, actual);
 }
 public void TestICacheRedirectConditionDefinitions()
 {
     ICacheRedirectConditionDefinitions cache = new DeliveryCacheRuntime();
     IDictionary<Guid, IDictionary<Guid, RedirectDimension>> redirectConditionDefinitions = new Dictionary<Guid, IDictionary<Guid, RedirectDimension>>();
     var expected = redirectConditionDefinitions;
     cache.SetRedirectConditionDefinitions(redirectConditionDefinitions);
     var actual = cache.GetRedirectConditionDefinitions();
     Assert.AreEqual(expected, actual);
 }
 public void TestICacheDeliveryPiplineConfigurations()
 {
     ICacheDeliveryPiplineConfigurations cache = new DeliveryCacheRuntime();
     IDictionary<Guid, IDictionary<Guid, DeliveryPiplineConfiguration>> deliveryPiplineConfigurations = new Dictionary<Guid, IDictionary<Guid, DeliveryPiplineConfiguration>>();
     var expected = deliveryPiplineConfigurations;
     cache.SetDeliveryPiplineConfigurations(deliveryPiplineConfigurations);
     var actual = cache.GetDeliveryPiplineConfigurations();
     Assert.AreEqual(expected, actual);
 }
 public void TestICacheAdPositionAndAdPositionGroupCodeMappings()
 {
     ICacheAdPositionAndAdPositionGroups cache = new DeliveryCacheRuntime();
     IDictionary<Guid, IDictionary<string, Guid>> adPositionAndAdPositionGroupCodeMappings = new Dictionary<Guid, IDictionary<string, Guid>>();
     var expected = adPositionAndAdPositionGroupCodeMappings;
     cache.SetAdPositionAndAdPositionGroupCodeMappings(adPositionAndAdPositionGroupCodeMappings);
     var actual = cache.GetAdPositionAndAdPositionGroupCodeMappings();
     Assert.AreEqual(expected, actual);
 }
 public void TestICacheAdDispatchPlans()
 {
     ICacheAdDispatchPlans cache = new DeliveryCacheRuntime();
     IDictionary<string, IDictionary<Guid, IDictionary<DateTime, IDictionary<Ad, long>>>> adDispatchPlans = new Dictionary<string, IDictionary<Guid, IDictionary<DateTime, IDictionary<Ad, long>>>>();
     string serverId = Guid.NewGuid().ToString();
     var expected = new Dictionary<Guid, IDictionary<DateTime, IDictionary<Ad, long>>>();
     adDispatchPlans[serverId] = expected;
     cache.SetAdDispatchPlansCache(adDispatchPlans);
     var actual = cache.GetCachedAdDispatchPlans(serverId);
     Assert.AreEqual(expected, actual);
 }
 public void TestICacheIpLibraries()
 {
     ICacheRedirectConditionDefinitions cache = new DeliveryCacheRuntime();
     IDictionary<Guid, IDictionary<Guid, IpLibrary>> ipLibraries = new Dictionary<Guid, IDictionary<Guid, IpLibrary>>();
     var expected = ipLibraries;
     cache.SetIpLibraries(ipLibraries);
     var actual = cache.GetIpLibraries();
     Assert.AreEqual(expected, actual);
 }
 public void TestICacheAdStacksSerializerMapping()
 {
     ICacheSerializerMappings cache = new DeliveryCacheRuntime();
     IDictionary<Guid, ICollection<SerializerMapping>> adStacksSerializerMapping = new Dictionary<Guid, ICollection<SerializerMapping>>();
     var expected = adStacksSerializerMapping;
     cache.SetAdStacksSerializerMapping(adStacksSerializerMapping);
     var actual = cache.GetAdStacksSerializerMappings();
     Assert.AreEqual(expected, actual);
 }
 public void TestICacheCreativeSerializerMappings()
 {
     ICacheSerializerMappings cache = new DeliveryCacheRuntime();
     IDictionary<Guid, ICollection<SerializerMapping>> creativeSerializerMappings = new Dictionary<Guid, ICollection<SerializerMapping>>();
     var expected = creativeSerializerMappings;
     cache.SetCreativeSerializerMappings(creativeSerializerMappings);
     var actual = cache.GetCreativeSerializerMappings();
     Assert.AreEqual(expected, actual);
 }