public async Task <HttpResponseMessage> DeleteSuggestClauses([FromBody] IEnumerable <Clause> clauses) { return(await GetServiceResponseAsync <int>(async() => { return await _filterLogic.DeleteSuggestClausesAsync(clauses); })); }
public async void DeleteSuggestClausesTest() { var clauses = fixture.CreateMany <Clause>(5); _deviceListFilterRepositoryMock.Setup(x => x.DeleteSuggestClausesAsync(clauses)).ReturnsAsync(3); int ret = await _filterLogic.DeleteSuggestClausesAsync(clauses); Assert.Equal(3, ret); }