public void UsesCurrentRequestToDetermineSiteRoot() { // Arrange var config = new Mock<IGalleryConfigurationService>(); config.Setup(s => s.GetSiteRoot(true)).Returns("https://nuget.org").Verifiable(); var feed = new TestableV2Feed(null, config.Object, null); feed.Request = new HttpRequestMessage(HttpMethod.Get, "https://nuget.org"); // Act var actual = feed.GetSiteRootForTest(); // Assert Assert.Equal("https://nuget.org/", actual); config.Verify(); }