public void SetPdxTypeMapper() { var dummyPdxTypeMapper = new DummyPdxTypeMapper(); cacheOne.TypeRegistry.PdxTypeMapper = dummyPdxTypeMapper; Assert.Same(dummyPdxTypeMapper, cacheOne.TypeRegistry.PdxTypeMapper); Assert.Null(cacheTwo.TypeRegistry.PdxTypeMapper); }
public void GetLocalTypeName() { var dummyPdxTypeMapper = new DummyPdxTypeMapper(); cacheOne.TypeRegistry.PdxTypeMapper = dummyPdxTypeMapper; var localName = cacheOne.TypeRegistry.GetLocalTypeName("foo"); Assert.Equal("bar", localName); Assert.Equal("foo", cacheTwo.TypeRegistry.GetLocalTypeName("foo")); }
public void GetPdxTypeName() { var dummyPdxTypeMapper = new DummyPdxTypeMapper(); _cacheOne.TypeRegistry.PdxTypeMapper = dummyPdxTypeMapper; var pdxName = _cacheOne.TypeRegistry.GetPdxTypeName("bar"); Assert.Equal("foo", pdxName); Assert.Equal("bar", _cacheTwo.TypeRegistry.GetPdxTypeName("bar")); }