public void DoesNotReturnPackagesFromRemote()
            {
                var packageA = new MockPackage {
                    Id = "A"
                };
                var packageB = new MockPackage {
                    Id = "B"
                };
                var packageAB = new MockPackage {
                    Id = "AB"
                };

                var mockLocalRepo = new MockPackageRepository();

                mockLocalRepo.AddPackage(packageA);
                mockLocalRepo.AddPackage(packageB);
                var mockRemoteRepo = new MockPackageRepository();

                mockRemoteRepo.AddPackage(packageAB);

                Dependencies.NuGetProjectManagerFactory = MockGenerator.CreateProjectManagerFactory(MockGenerator.CreateMockProjectManager(mockRemoteRepo, mockLocalRepo).Object);

                // act
                var project = new WebNuGetProject(new string[] { "http://dummyFeed" }, @"C:\DummyPath", null, MockGenerator.CreateWebProjectSystemFactory());
                var results = project.GetInstalledPackages("A");

                Assert.Equal(new IPackage[] { packageA }, results);
            }
            public void EmptySearchTerms_ReturnsAllLocalPackages()
            {
                var packageA = new MockPackage {
                    Id = "A"
                };
                var packageB = new MockPackage {
                    Id = "B"
                };

                var mockRepo = new MockPackageRepository();

                mockRepo.AddPackage(packageA);
                mockRepo.AddPackage(packageB);

                Dependencies.NuGetProjectManagerFactory = MockGenerator.CreateProjectManagerFactory(MockGenerator.CreateMockProjectManager(new MockPackageRepository(), mockRepo).Object);

                // act
                var project = new WebNuGetProject(new string[] { "http://dummyFeed" }, @"C:\DummyPath", null, MockGenerator.CreateWebProjectSystemFactory());
                var results = project.GetInstalledPackages("");

                Assert.Equal(new IPackage[] { packageA, packageB }, results);
            }