Testing project added #76
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #74
This pull request adds a new test project for the
AppVecinos.API
and includes several related changes to the solution and project files. The most important changes include adding the new test project to the solution, configuring the test project with necessary packages, and implementing initial login tests.Additions to the solution:
App-de-Vecinos.sln
: Added theAppVecinos.API.Tests
project to the solution file.App-de-Vecinos.sln
: Updated theGlobal
section to include build configurations for the new test project.Configuration of the test project:
AppVecinos.API.Tests/AppVecinos.API.Tests.csproj
: Created the project file forAppVecinos.API.Tests
with references to necessary packages such ascoverlet.collector
,Microsoft.AspNetCore.Mvc.Testing
,Moq
, andxunit
.Implementation of login tests:
AppVecinos.API.Tests/LoginTests.cs
: Implemented initial login tests to verify the API's behavior with valid and invalid credentials usingxunit
andMoq
.Minor changes:
AppVecinos.API/Program.cs
: Wrapped the main execution logic in aProgram
class to support the test framework. [1] [2]