public void GetByID_OneItem_ReturnsAttribute() { // Arrange Attribute entity = new Attribute { ID = 1 }; // Act MessageHub.Instance.Publish(new OnCacheObjectSet <Attribute>(entity)); // Assert Assert.AreNotSame(entity, _cache.GetByID(1)); }