public void ModuleLoaderImpl_Can_Load_Modules_From_Configuration()
        {
            var result = ModuleLoader.Load();

            Assert.AreEqual(1, result.Length);
            AssemblyProbingServiceMock.Verify(aps => aps.Copy(Path.Combine(Configuration.ApplicationPath, ModulePath), TempDir));
            AssemblyProbingServiceMock.Verify(aps => aps.Load(TempDir));
            AssemblyLoaderMock.Verify(al => al.Load(ModuleAssembly));
        }
        public void AssemblyProbingServiceImpl_Can_Load()
        {
            var assembly   = this.GetType().Assembly;
            var targetPath = @"C:\test\hello";

            FileSystemMock.Setup(fs => fs.GetFiles(targetPath)).Returns(new[] { @"C:\test\hello\world.dll", @"C:\test\hello\bar.dll" });
            AssemblyLoaderMock.Setup(al => al.Load("world")).Returns(assembly);
            AssemblyLoaderMock.Setup(al => al.Load("bar")).Returns(assembly);
            Service.Load(targetPath);
            AssemblyLoaderMock.Verify(al => al.Load("world"));
            AssemblyLoaderMock.Verify(al => al.Load("bar"));
            BuildManagerMock.Verify(bm => bm.AddReferencedAssembly(assembly), Times.Exactly(2));
        }