How can I simulate this part of my code in xUnit
var updateCost =
await _costOfConsomption.DeferredWhere(x => x.Id == model.CostOfConsomptionId).FirstOrDefaultAsync() ??
throw new
NotFoundException();
this the DeferredWhere and FirstOrDefaultAsync must be simulated