public void assure_author_is_loaded_into_the_resultset()
{
Scenario.StartNew(this, scenario =>
{
scenario.Given(the_repository_contain_changesets);
scenario.When(changesets_are_requested);
scenario.Then("assure Author is loaded into over 50% of the rows in the _resultset", () =>
{
IEnumerable<Changeset> q =
resultset.Where(c => c.Author != null && c.Author.Username != null);
double authorPercent = ((double)q.Count() / resultset.Count()) * 100;
authorPercent.ShouldBeGreaterThan(50);
});
});
}