Beispiel #1
0
        protected static object GetGuidValue(IDictionary <string, string> collection, string lookupItem)
        {
            GuidDataMapper guidDataMapper = new GuidDataMapper();
            object         returnValue;

            guidDataMapper.TryParsePropValue(collection[lookupItem], out returnValue);
            return(returnValue);
        }
Beispiel #2
0
        public void Test_DataMapper_ParsePropValue_Null()
        {
            //---------------Set up test pack-------------------

            //---------------Assert Precondition----------------

            //---------------Execute Test ----------------------
            object parsedValue;
            bool   parsedSucceed = _dataMapper.TryParsePropValue(null, out parsedValue);

            //---------------Test Result -----------------------
            Assert.IsNull(parsedValue);
            Assert.IsTrue(parsedSucceed);
        }