private PackageSourceService InitializeService() { return SourceService = new PackageSourceService( XmlSourceStore.CreateMachine(), XmlSourceStore.CreateUser(), GetSessionStore()); }
public void UserSourcesOverrideMachineSources() { // Arrange PackageSourceService service = new PackageSourceService( new InMemorySourceStore(new[] { new PackageSource("http://foo.bar", "Foo") }), new InMemorySourceStore(new[] { new PackageSource("http://biz.baz", "Foo") }), new InMemorySourceStore()); // Act PackageSource src = service.AllSources.Single(); // Assert Assert.Equal(new PackageSource("http://biz.baz", "Foo"), src); }