Skip to content
This repository
Browse code

fixes after pulling in GetSiteRoot changes

  • Loading branch information...
commit 90a05bc3e0580783f81ccba1153b8bafbb2af1ad 1 parent 0bf5183
Drew Miller authored May 02, 2012
4  Facts/Services/FeedServiceFacts.cs
@@ -147,7 +147,7 @@ public class TestableV1Feed : V1Feed
147 147
                 IEntityRepository<Package> repo,
148 148
                 IConfiguration configuration,
149 149
                 ISearchService searchSvc)
150  
-                : base(repo, configuration, searchSvc)
  150
+                : base(new Mock<IEntitiesContext>().Object, repo, configuration, searchSvc)
151 151
             {
152 152
             }
153 153
 
@@ -163,7 +163,7 @@ public class TestableV2Feed : V2Feed
163 163
                 IEntityRepository<Package> repo,
164 164
                 IConfiguration configuration,
165 165
                 ISearchService searchSvc)
166  
-                : base(repo, configuration, searchSvc)
  166
+                : base(new Mock<IEntitiesContext>().Object, repo, configuration, searchSvc)
167 167
             {   
168 168
             }
169 169
 
6  Website/DataServices/V2CuratedFeed.svc.cs
@@ -30,7 +30,7 @@ protected override FeedContext<V2FeedPackage> CreateDataSource()
30 30
             
31 31
             return new FeedContext<V2FeedPackage>
32 32
             {
33  
-                Packages = packages.ToV2FeedPackageQuery(Configuration.SiteRoot)
  33
+                Packages = packages.ToV2FeedPackageQuery(Configuration.GetSiteRoot(UseHttps()))
34 34
             };
35 35
         }
36 36
 
@@ -39,7 +39,7 @@ public IQueryable<V2FeedPackage> FindPackagesById(string id)
39 39
         {
40 40
             return GetPackages()
41 41
                 .Where(p => p.PackageRegistration.Id.Equals(id, StringComparison.OrdinalIgnoreCase))
42  
-                .ToV2FeedPackageQuery(Configuration.SiteRoot);
  42
+                .ToV2FeedPackageQuery(Configuration.GetSiteRoot(UseHttps()));
43 43
         }
44 44
 
45 45
         private static void FixUpDataServiceUrisForCuratedFeedName(
@@ -112,7 +112,7 @@ public IQueryable<V2FeedPackage> Search(string searchTerm, string targetFramewor
112 112
             {
113 113
                 packages = packages.Where(p => !p.IsPrerelease);
114 114
             }
115  
-            return packages.Search(searchTerm).ToV2FeedPackageQuery(Configuration.SiteRoot);
  115
+            return packages.Search(searchTerm).ToV2FeedPackageQuery(Configuration.GetSiteRoot(UseHttps()));
116 116
         }
117 117
 
118 118
         public override Uri GetReadStreamUri(

0 notes on commit 90a05bc

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