Esempio n. 1
0
        public void SetPdxTypeMapper()
        {
            var dummyPdxTypeMapper = new DummyPdxTypeMapper();

            cacheOne.TypeRegistry.PdxTypeMapper = dummyPdxTypeMapper;

            Assert.Same(dummyPdxTypeMapper, cacheOne.TypeRegistry.PdxTypeMapper);
            Assert.Null(cacheTwo.TypeRegistry.PdxTypeMapper);
        }
Esempio n. 2
0
        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"));
        }
Esempio n. 3
0
        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"));
        }