public void GetByID_OneItem_ReturnsPlayer() { // Arrange var id = Guid.NewGuid(); Player entity = new Player { ID = id }; // Act MessageHub.Instance.Publish(new OnCacheObjectSet <Player>(entity)); // Assert Assert.AreNotSame(entity, _cache.GetByID(id)); }