public InventoryOperation GetEndOfYearFuelReportConsumptionInventoryOperation(FuelReport fuelReport)
        {
            fuelReport.CheckToBeNotCancelled();

            if (fuelReport.FuelReportType != FuelReportTypes.EndOfYear)
                throw new InvalidArgument("The FuelReport is not of type End Of Year to find Consumption Invenroty.", "fuelReport");

            return fuelReport.ConsumptionInventoryOperations.Last();
        }
        public List<InventoryOperation> GetFuelReportInventoryOperations(FuelReport fuelReport)
        {
            fuelReport.CheckToBeNotCancelled();

            return fuelReport.FuelReportDetails.SelectMany(frd => frd.InventoryOperations).ToList();

            //return inventoryOperationRepository.Find(
            //    inv =>
            //        fuelReport.FuelReportDetails
            //            .SelectMany(frd => frd.InventoryOperations)
            //            .Select(frdinv => frdinv.Id)
            //            .Contains(inv.Id)
            //).ToList();
        }