Esempio n. 1
0
        private Code GetCode(Type returnType, string codeValue, string codeSystem)
        {
            CodeResolver resolver = CodeResolverRegistry.GetResolver(returnType);

            return(StringUtils.IsBlank(codeSystem) ? resolver.Lookup <Code>(returnType, codeValue) : resolver.Lookup <Code>(returnType,
                                                                                                                            codeValue, codeSystem));
        }
Esempio n. 2
0
        public void TestShouldHandleLookupByCode()
        {
            this.jmock.Checking(new DatabaseCodeResolverTest.Anonymous_C9(this, codeSetDao, codeFactory));

            Code result = resolver.Lookup <x_NormalRestrictedTabooConfidentialityKind>(
                typeof(x_NormalRestrictedTabooConfidentialityKind), CODE_VALUE);

            NUnit.Framework.Assert.AreSame(CODE, result);
        }