public void GetSourcesRecordCountTest() { var condition = new AggregatedConditionDto(); var count = _service.GetSourcesRecordCount(condition).Result; Assert.IsTrue(count > 0); Console.WriteLine($"Total sources: {count}"); Assert.Pass(); }
public async Task <int> GetSourcesRecordCount([FromBody] AggregatedConditionDto condition) { return(await _dbService.GetSourcesRecordCount(condition)); }