Example #1
0
        public void ListAsyncNoRecordsReturnedGetRecordNotFoundException()
        {
            _baseValueSegmentFlagRepository.Setup(x => x.ListAsync(12345))
            .ReturnsAsync(Enumerable.Empty <BaseValueSegmentFlag>());

            Should.ThrowAsync <RecordNotFoundException>(() => _baseValueSegmentFlagDomain.ListAsync(12345));
        }
 public async Task <IActionResult> GetByRevenueObjectIdAndAssessmentEventDate(int revenueObjectId)
 {
     return(new ObjectResult(await _baseValueSegmentFlagDomain.ListAsync(revenueObjectId)));
 }