ASimmo is an ASP.NET Core MVC web application for managing real estate properties ("Biens Immobiliers"), addresses, classifications, and related entities. The solution includes both the main web application and a suite of automated tests.
- ASimmo/: Main ASP.NET Core MVC application
- Controllers, Models, Views, Data, and Identity setup
- Handles property listings, address management, user authentication, and role-based access
- ASimmo.Tests/: Automated test project
- Functional and smoke tests for controllers and pages
- Uses xUnit and ASP.NET Core's test server infrastructure
- .NET 8 SDK
- (Optional) SQLite or your preferred database provider
- Clone the repository
- Restore dependencies:
dotnet restore
- Apply migrations and seed the database:
The database will be seeded with default users and roles as defined in
dotnet ef database update
appsettings.jsonandStartup.cs. - Run the application:
The app will be available at
dotnet run --project ASimmo
https://localhost:5001orhttp://localhost:5000by default.
Seeded users and roles are defined in appsettings.json. Example credentials:
- Admin:
[email protected]/P@ssw0rd - Agent: (see
appsettings.jsonfor details)
These users can be used to access role-protected endpoints.
Navigate to the solution root and run:
dotnet testThis will execute all functional and smoke tests in ASimmo.Tests. Some tests authenticate as seeded users to verify access to protected endpoints.
- Property (Bien Immo) management
- Address CRUD
- Role-based access control (Admin, Agent, etc.)
- ASP.NET Core Identity integration
- Automated functional and smoke tests
- The test infrastructure includes helpers to authenticate as seeded users and access protected endpoints.
- If you add new protected endpoints, update the tests to use the authentication helper as needed.
MIT