Skip to content

fix in tests

fix in tests #9

Triggered via push October 2, 2024 19:10
Status Failure
Total duration 56s
Artifacts

main.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

1 error and 14 warnings
build
Process completed with exit code 1.
build: API/Middleware/ValidationBehaviour.cs#L6
The type 'TRequest' cannot be used as type parameter 'TRequest' in the generic type or method 'IPipelineBehavior<TRequest, TResponse>'. Nullability of type argument 'TRequest' doesn't match 'notnull' constraint.
build: API/Data/migrations/20240701202338_init.cs#L9
The type name 'init' only contains lower-cased ascii characters. Such names may become reserved for the language.
build: API/Data/migrations/20240701202338_init.Designer.cs#L15
The type name 'init' only contains lower-cased ascii characters. Such names may become reserved for the language.
build: API/Data/migrations/20240704112745_typo.cs#L8
The type name 'typo' only contains lower-cased ascii characters. Such names may become reserved for the language.
build: API/Data/migrations/20240704112745_typo.Designer.cs#L16
The type name 'typo' only contains lower-cased ascii characters. Such names may become reserved for the language.
build: API/Data/migrations/20240715121326_bodyweight.cs#L9
The type name 'bodyweight' only contains lower-cased ascii characters. Such names may become reserved for the language.
build: API/Data/migrations/20240715121326_bodyweight.Designer.cs#L16
The type name 'bodyweight' only contains lower-cased ascii characters. Such names may become reserved for the language.
build: API/Data/AppUser.cs#L8
Non-nullable property 'Gender' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
build: API/Data/AppUser.cs#L10
Non-nullable property 'FitnessPlans' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
build: API/Data/AppUser.cs#L11
Non-nullable property 'FitnessPlansTemplates' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
build: Tests/IntegrationTests/AccountsControllerTests.cs#L104
Dereference of a possibly null reference.
build: Tests/IntegrationTests/PlansControllerTests.cs#L83
Dereference of a possibly null reference.
build: Tests/IntegrationTests/PlansControllerTests.cs#L130
Dereference of a possibly null reference.
build: Tests/IntegrationTests/AccountsControllerTests.cs#L115
Do not use Assert.False() to check if a value exists in a collection. Use Assert.DoesNotContain instead. (https://xunit.net/xunit.analyzers/rules/xUnit2017)