public async Task MissingLoad() { _config.Setup(_ => _.GetSection(It.Is <string>(s => s == FeedbackQuestionCodeEnum.LB_ShipperReuseCarrierQuestionId.ToString()))).Returns(_configSection.Object); _configSection.Setup(a => a.Value).Returns("10"); _dbBuilder = new MockDbBuilder(); _dbBuilder.WithUser(VALID_USER); _db = _dbBuilder.Build(); _svc = CreateService(); Func <Task> action = async() => await _svc.GetResponseAsync( FeedbackQuestionCodeEnum.LB_ShipperReuseCarrierQuestionId, VALID_LOAD_ID); (await action.Should().ThrowAsync <Exception>()).WithMessage("Load not found"); }