public async Task Compact() { using (var httpTest = new HttpTest()) { // Operation response httpTest.RespondWithJson(new { ok = true }); await _rebels.CompactAsync(); httpTest .ShouldHaveCalled("http://localhost/rebels/_compact") .WithVerb(HttpMethod.Post); } }