public void DataObjectCacheMainTest() { cache.StartCaching(false); object pkey = PrvCreateDataObject(); DataObjectForTest sdo = (DataObjectForTest)cache.GetLivingDataObject(typeof(DataObjectForTest), pkey); cache.StopCaching(); Assert.NotNull(sdo); Console.WriteLine(String.Format("Getted from cache dataobject name = {0}", sdo.Name)); }
public void GetLivingDataObjectTest() { DataObjectCache target = new DataObjectCache(); // TODO: Initialize to an appropriate value Type typeofdataobject = null; // TODO: Initialize to an appropriate value object key = null; // TODO: Initialize to an appropriate value DataObject expected = null; // TODO: Initialize to an appropriate value DataObject actual; actual = target.GetLivingDataObject(typeofdataobject, key); Assert.Equal(expected, actual); }