Ejemplo n.º 1
0
        public void PluginRuntimeHandler_GetConstructors_WhenValidDll_ExpectValidResults()
        {
            //------------Setup for test--------------------------
            var source  = CreatePluginSource();
            var service = CreatePluginService();

            //------------Execute Test---------------------------
            using (Isolated <PluginRuntimeHandler> isolated = new Isolated <PluginRuntimeHandler>())
            {
                var result = PluginServiceExecutionFactory.GetConstructors(source.AssemblyLocation, source.AssemblyName, service.Namespace);
                //------------Assert Results-------------------------
                Assert.IsTrue(result.Count > 0);
            }
        }
Ejemplo n.º 2
0
 public ServiceConstructorList GetConstructors(string assemblyLocation, string assemblyName, string fullName)
 {
     return(PluginServiceExecutionFactory.GetConstructors(assemblyLocation, assemblyName, fullName));
 }