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)); }
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); }