コード例 #1
0
        public void PluginRuntimeHandler_GetNamespacesWithJsonObjects_WhenValidDll_ExpectNamespaces()
        {
            //------------Setup for test--------------------------
            var source = CreatePluginSource();
            //------------Execute Test---------------------------
            var result = PluginServiceExecutionFactory.GetNamespacesWithJsonObjects(source);

            //------------Assert Results-------------------------
            Assert.IsTrue(result.Count > 0);
        }
コード例 #2
0
 public NamespaceList GetNamespacesWithJsonObjects(PluginSource pluginSource)
 {
     try
     {
         return(PluginServiceExecutionFactory.GetNamespacesWithJsonObjects(pluginSource));
     }
     // ReSharper disable once RedundantCatchClause
     catch (BadImageFormatException)
     {
         throw;
     }
 }
コード例 #3
0
ファイル: PluginBroker.cs プロジェクト: tuga1975/Warewolf
        public NamespaceList GetNamespacesWithJsonObjects(PluginSource pluginSource)
        {
            try
            {
                return(PluginServiceExecutionFactory.GetNamespacesWithJsonObjects(pluginSource));
            }

            catch (BadImageFormatException)
            {
                throw;
            }
        }
コード例 #4
0
 public void PluginRuntimeHandler_GetNamespacesWithJsonObjects_WhenNullDll_ExpectException()
 {
     //------------Execute Test---------------------------
     PluginServiceExecutionFactory.GetNamespacesWithJsonObjects(null);
 }