Skip to content

Commit

Permalink
Fixed a broken unit test...
Browse files Browse the repository at this point in the history
  • Loading branch information
haacked committed Jun 18, 2011
1 parent 23ea40b commit b26219b
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ private static HostInfo CreateHostInfo()
{
return new HostInfo(new NameValueCollection());
}

[Test]
public void OpmlHandler_WithRequest_SetsContentTypeToXml()
{
Expand Down Expand Up @@ -62,13 +63,13 @@ public void OpmlHandler_WithRequestForAggregateBlog_GetsGroupIdFromQueryString()
repository.Setup(r => r.GetBlogsByGroup("example.com", It.IsAny<int?>())).Callback<string, int?>(
(host, groupId) => parsedGroupId = groupId);
context.SetupRepository(repository);

var writer = new Mock<OpmlWriter>();
writer.Setup(w => w.Write(It.IsAny<IEnumerable<Blog>>(), It.IsAny<TextWriter>(), It.IsAny<BlogUrlHelper>()));
var handler = new OpmlHandler(context.Object, writer.Object, new Lazy<HostInfo>(CreateHostInfo));

var appSettings = new NameValueCollection();
appSettings.Add("AggregateEnabled", "true");
var hostInfo = new HostInfo(appSettings);
var handler = new OpmlHandler(context.Object, writer.Object, new Lazy<HostInfo>(() => hostInfo));

//act
handler.ProcessRequest();
Expand Down

0 comments on commit b26219b

Please sign in to comment.