public async void DeleteAsyncTest() { _api.SetResult(@" { result: { acknowledged: true } } "); await _indexController.DeleteAsync("foo"); _api.Verify(new JObject { { "controller", "index" }, { "action", "delete" }, { "index", "foo" } }); }
public async void DeleteAsyncTest() { _api.SetResult(@" { result: { acknowledged: true } } "); await _indexController.DeleteAsync("foo"); _api.Verify(new JObject { { "controller", "index" }, { "action", "delete" }, { "index", "foo" } }); }