public async Task DeleteDecisionTest(int decisionId) { _decisionService = CreateDecisionService(); _repository.Setup(rep => rep.Decesion.GetFirstAsync(It.IsAny <Expression <Func <Decesion, bool> > >(), It.IsAny <Func <IQueryable <Decesion>, IIncludableQueryable <Decesion, object> > >())) .ReturnsAsync(GetTestDecesionQueryable().FirstOrDefault(d => d.ID == decisionId)); await _decisionService.DeleteDecisionAsync(decisionId); _repository.Verify(rep => rep.Decesion.GetFirstAsync(It.IsAny <Expression <Func <Decesion, bool> > >(), It.IsAny <Func <IQueryable <Decesion>, IIncludableQueryable <Decesion, object> > >()), Times.Once); }