public virtual ICommandAssembly Add(string name, byte[] contents, IKnownTypeHolder knownTypeHolder)
 {
     if (!list.ContainsKey(name))
     {
         list[name] = new CommandAssembly(Assembly.Load(contents), knownTypeHolder);
     }
     return list[name];
 }
 public virtual ICommandAssembly Add(string name, byte[] contents, IKnownTypeHolder knownTypeHolder)
 {
     if (!list.ContainsKey(name))
     {
         list[name] = new CommandAssembly(Assembly.Load(contents), knownTypeHolder);
     }
     return(list[name]);
 }
 public virtual ICommandAssembly Add(string name, byte[] contents, IKnownTypeHolder knownTypeHolder)
 {
     if (!list.ContainsKey(name))
     {
         using (var memoryStream = new MemoryStream(contents))
         {
             var part = new AssemblyPart();
             Assembly assembly = part.Load(memoryStream);
             list[name] = new CommandAssembly(assembly, knownTypeHolder);
         }
     }
     return list[name];
 }
 public virtual ICommandAssembly Add(string name, byte[] contents, IKnownTypeHolder knownTypeHolder)
 {
     if (!list.ContainsKey(name))
     {
         using (var memoryStream = new MemoryStream(contents))
         {
             var      part     = new AssemblyPart();
             Assembly assembly = part.Load(memoryStream);
             list[name] = new CommandAssembly(assembly, knownTypeHolder);
         }
     }
     return(list[name]);
 }
 public void TestFixtureSetUp()
 {
     commandAssembly = new CommandAssembly(Assembly.GetExecutingAssembly(), new KnownTypeHolderStub());
 }