public void SetAndGetValueFromCach_Tests() { CachManager.SetInCach(_person, _key); Person person = CachManager.GetFromCach <Person>(_key); Assert.AreEqual(_person.Name, person.Name); Assert.AreEqual(_person.Age, person.Age); }
public void SetValue_CachingTimeEnd_Tests() { CachManager.SetInCach(_person, _key); Thread.Sleep(5000); var person = CachManager.GetFromCach <Person>(_key); Assert.IsNull(person); }