public void Given()
 {
     Construct_fresh_index();
     var asmbly = With_a_monitored_assembly_stored_under("friend.dll");
     Add_calls(c => c.Install(null, null), asmbly);
     _entryPoint = Get_entry_point_from_index();
 }
        public void Given()
        {
            Construct_fresh_index();
            var remoteLocation = Path.Combine(Path.GetTempPath(), "friend.dll");
            ensure_this_assembly_is_missing_locally("friend.dll");
            var a = With_a_monitored_assembly_stored_under(remoteLocation);

            using (var updater = new AssemblyUpdater("TheIndex.dll"))
            {
                updater
                    .For(c => c.Install(null, null))
                    .AddCallsWithTheseAssemblies(a.AsEnumerable());
            }

            _entryPoint = Get_entry_point_from_index();
        }