Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixes after pulling in GetSiteRoot changes

  • Loading branch information...
commit 90a05bc3e0580783f81ccba1153b8bafbb2af1ad 1 parent 0bf5183
@half-ogre half-ogre authored
View
4 Facts/Services/FeedServiceFacts.cs
@@ -147,7 +147,7 @@ public class TestableV1Feed : V1Feed
IEntityRepository<Package> repo,
IConfiguration configuration,
ISearchService searchSvc)
- : base(repo, configuration, searchSvc)
+ : base(new Mock<IEntitiesContext>().Object, repo, configuration, searchSvc)
{
}
@@ -163,7 +163,7 @@ public class TestableV2Feed : V2Feed
IEntityRepository<Package> repo,
IConfiguration configuration,
ISearchService searchSvc)
- : base(repo, configuration, searchSvc)
+ : base(new Mock<IEntitiesContext>().Object, repo, configuration, searchSvc)
{
}
View
6 Website/DataServices/V2CuratedFeed.svc.cs
@@ -30,7 +30,7 @@ protected override FeedContext<V2FeedPackage> CreateDataSource()
return new FeedContext<V2FeedPackage>
{
- Packages = packages.ToV2FeedPackageQuery(Configuration.SiteRoot)
+ Packages = packages.ToV2FeedPackageQuery(Configuration.GetSiteRoot(UseHttps()))
};
}
@@ -39,7 +39,7 @@ public IQueryable<V2FeedPackage> FindPackagesById(string id)
{
return GetPackages()
.Where(p => p.PackageRegistration.Id.Equals(id, StringComparison.OrdinalIgnoreCase))
- .ToV2FeedPackageQuery(Configuration.SiteRoot);
+ .ToV2FeedPackageQuery(Configuration.GetSiteRoot(UseHttps()));
}
private static void FixUpDataServiceUrisForCuratedFeedName(
@@ -112,7 +112,7 @@ public IQueryable<V2FeedPackage> Search(string searchTerm, string targetFramewor
{
packages = packages.Where(p => !p.IsPrerelease);
}
- return packages.Search(searchTerm).ToV2FeedPackageQuery(Configuration.SiteRoot);
+ return packages.Search(searchTerm).ToV2FeedPackageQuery(Configuration.GetSiteRoot(UseHttps()));
}
public override Uri GetReadStreamUri(

0 comments on commit 90a05bc

Please sign in to comment.
Something went wrong with that request. Please try again.