Skip to content

Alihan Items/ItemTypes tests, Validate Items. #572

Alihan Items/ItemTypes tests, Validate Items.

Alihan Items/ItemTypes tests, Validate Items. #572

Triggered via pull request January 20, 2025 15:14
@Alihanaslan75Alihanaslan75
synchronize #48
Alihan2
Status Failure
Total duration 1m 34s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

4 errors and 33 warnings
unit-tests: UnitTest/BaseItemStorageTests.cs#L6
Using the generic type 'BaseStorageService<T>' requires 1 type arguments
unit-tests: UnitTest/ItemTypesServiceTests.cs#L6
Using the generic type 'BaseStorageService<T>' requires 1 type arguments
unit-tests
Process completed with exit code 1.
integration-tests
Process completed with exit code 1.
unit-tests
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
unit-tests: CargoHub/Models/APIKey.cs#L9
'APIKey.Id' hides inherited member 'BaseModel.Id'. Use the new keyword if hiding was intended.
unit-tests: CargoHub/Controllers/WarehousesController.cs#L10
Parameter 'BaseStorageService<Warehouse> storage' is captured into the state of the enclosing type and its value is also passed to the base constructor. The value might be captured by the base class as well.
unit-tests: CargoHub/Controllers/WarehousesController.cs#L10
Parameter 'ErrorHandler error' is captured into the state of the enclosing type and its value is also passed to the base constructor. The value might be captured by the base class as well.
unit-tests: CargoHub/Controllers/TransfersController.cs#L10
Parameter 'ErrorHandler error' is captured into the state of the enclosing type and its value is also passed to the base constructor. The value might be captured by the base class as well.
unit-tests: CargoHub/Controllers/TransfersController.cs#L29
Dereference of a possibly null reference.
unit-tests: CargoHub/Controllers/TransfersController.cs#L39
Possible null reference argument for parameter 'itemId' in 'Task<List<Inventory>> InventoryStorageService.GetInventoriesForItem(string itemId)'.
unit-tests: CargoHub/Services/ShipmentService.cs#L22
Argument of type 'IIncludableQueryable<Shipment, List<Order>?>' cannot be used for parameter 'source' of type 'IIncludableQueryable<Shipment, IEnumerable<Order>>' in 'IIncludableQueryable<Shipment, List<OrderItem>?> EntityFrameworkQueryableExtensions.ThenInclude<Shipment, Order, List<OrderItem>?>(IIncludableQueryable<Shipment, IEnumerable<Order>> source, Expression<Func<Order, List<OrderItem>?>> navigationPropertyPath)' due to differences in the nullability of reference types.
unit-tests: CargoHub/Services/ShipmentService.cs#L22
Argument of type 'IIncludableQueryable<Shipment, List<OrderItem>?>' cannot be used for parameter 'source' of type 'IIncludableQueryable<Shipment, IEnumerable<OrderItem>>' in 'IIncludableQueryable<Shipment, Item?> EntityFrameworkQueryableExtensions.ThenInclude<Shipment, OrderItem, Item?>(IIncludableQueryable<Shipment, IEnumerable<OrderItem>> source, Expression<Func<OrderItem, Item?>> navigationPropertyPath)' due to differences in the nullability of reference types.
unit-tests: CargoHub/Services/ShipmentService.cs#L32
Possible null reference assignment.
unit-tests: CargoHub/Services/ShipmentService.cs#L33
Possible null reference assignment.
build
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
build: CargoHub/Models/APIKey.cs#L9
'APIKey.Id' hides inherited member 'BaseModel.Id'. Use the new keyword if hiding was intended.
build: CargoHub/Controllers/WarehousesController.cs#L10
Parameter 'BaseStorageService<Warehouse> storage' is captured into the state of the enclosing type and its value is also passed to the base constructor. The value might be captured by the base class as well.
build: CargoHub/Controllers/WarehousesController.cs#L10
Parameter 'ErrorHandler error' is captured into the state of the enclosing type and its value is also passed to the base constructor. The value might be captured by the base class as well.
build: CargoHub/Controllers/TransfersController.cs#L10
Parameter 'ErrorHandler error' is captured into the state of the enclosing type and its value is also passed to the base constructor. The value might be captured by the base class as well.
build: CargoHub/Controllers/TransfersController.cs#L29
Dereference of a possibly null reference.
build: CargoHub/Controllers/TransfersController.cs#L39
Possible null reference argument for parameter 'itemId' in 'Task<List<Inventory>> InventoryStorageService.GetInventoriesForItem(string itemId)'.
build: CargoHub/Services/ShipmentService.cs#L22
Argument of type 'IIncludableQueryable<Shipment, List<Order>?>' cannot be used for parameter 'source' of type 'IIncludableQueryable<Shipment, IEnumerable<Order>>' in 'IIncludableQueryable<Shipment, List<OrderItem>?> EntityFrameworkQueryableExtensions.ThenInclude<Shipment, Order, List<OrderItem>?>(IIncludableQueryable<Shipment, IEnumerable<Order>> source, Expression<Func<Order, List<OrderItem>?>> navigationPropertyPath)' due to differences in the nullability of reference types.
build: CargoHub/Services/ShipmentService.cs#L22
Argument of type 'IIncludableQueryable<Shipment, List<OrderItem>?>' cannot be used for parameter 'source' of type 'IIncludableQueryable<Shipment, IEnumerable<OrderItem>>' in 'IIncludableQueryable<Shipment, Item?> EntityFrameworkQueryableExtensions.ThenInclude<Shipment, OrderItem, Item?>(IIncludableQueryable<Shipment, IEnumerable<OrderItem>> source, Expression<Func<OrderItem, Item?>> navigationPropertyPath)' due to differences in the nullability of reference types.
build: CargoHub/Services/ShipmentService.cs#L32
Possible null reference assignment.
build: CargoHub/Services/ShipmentService.cs#L33
Possible null reference assignment.
integration-tests
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
integration-tests: CargoHub/Models/APIKey.cs#L9
'APIKey.Id' hides inherited member 'BaseModel.Id'. Use the new keyword if hiding was intended.
integration-tests: CargoHub/Controllers/WarehousesController.cs#L10
Parameter 'BaseStorageService<Warehouse> storage' is captured into the state of the enclosing type and its value is also passed to the base constructor. The value might be captured by the base class as well.
integration-tests: CargoHub/Controllers/WarehousesController.cs#L10
Parameter 'ErrorHandler error' is captured into the state of the enclosing type and its value is also passed to the base constructor. The value might be captured by the base class as well.
integration-tests: CargoHub/Controllers/TransfersController.cs#L10
Parameter 'ErrorHandler error' is captured into the state of the enclosing type and its value is also passed to the base constructor. The value might be captured by the base class as well.
integration-tests: CargoHub/Controllers/TransfersController.cs#L29
Dereference of a possibly null reference.
integration-tests: CargoHub/Controllers/TransfersController.cs#L39
Possible null reference argument for parameter 'itemId' in 'Task<List<Inventory>> InventoryStorageService.GetInventoriesForItem(string itemId)'.
integration-tests: CargoHub/Services/ShipmentService.cs#L22
Argument of type 'IIncludableQueryable<Shipment, List<Order>?>' cannot be used for parameter 'source' of type 'IIncludableQueryable<Shipment, IEnumerable<Order>>' in 'IIncludableQueryable<Shipment, List<OrderItem>?> EntityFrameworkQueryableExtensions.ThenInclude<Shipment, Order, List<OrderItem>?>(IIncludableQueryable<Shipment, IEnumerable<Order>> source, Expression<Func<Order, List<OrderItem>?>> navigationPropertyPath)' due to differences in the nullability of reference types.
integration-tests: CargoHub/Services/ShipmentService.cs#L22
Argument of type 'IIncludableQueryable<Shipment, List<OrderItem>?>' cannot be used for parameter 'source' of type 'IIncludableQueryable<Shipment, IEnumerable<OrderItem>>' in 'IIncludableQueryable<Shipment, Item?> EntityFrameworkQueryableExtensions.ThenInclude<Shipment, OrderItem, Item?>(IIncludableQueryable<Shipment, IEnumerable<OrderItem>> source, Expression<Func<OrderItem, Item?>> navigationPropertyPath)' due to differences in the nullability of reference types.
integration-tests: CargoHub/Services/ShipmentService.cs#L32
Possible null reference assignment.
integration-tests: CargoHub/Services/ShipmentService.cs#L33
Possible null reference assignment.