damianh/Cedar — pull request #29 by Erwinvandervalk (2014-11-07 10:09:22+00:00)
Title: Added a slightly cleaner api for testing queries

The Query object allows you to hide a lot of code in your test.

Compare:

.ThenShould(user.Queries(client =>
client.ExecuteQuery(new AllResourceModules(), Guid.NewGuid(), VisionControlScenario.QuerySettings)),
response => response.Count() == 1,

With
.ThenShould(user.Queries(New.GetAllResources),
response => response.Count() == 1,