BulkMessenger is a C# ASP.NET Core 7 API designed to showcase the implementation of a background service within an ASP.NET Core API. The project utilizes Entity Framework (EF) with Microsoft SQL Server as the database.
- Background Service: Demonstrates the usage of the BackgroundService in ASP.NET Core for performing background tasks.
- Entity Framework (EF): Utilizes EF for data access and management.
- Microsoft SQL Server: The project is configured to use Microsoft SQL Server as the database.
- Unit Testing: Demostrate Unit testing Web API Controllers, repositories and services
- .NET 7 SDK or later
- Microsoft SQL Server
- FakeItEasy
- FluentAssertion
- Visual Studio or any preferred code editor
- Clone the repository:
git clone https://github.com/your-username/BulkMessenger.git
- Navigate to the project directory:
cd BulkMessenger
- Update the database connection string in
appsettings.json
to point to your Microsoft SQL Server instance. - Open the project in Visual Studio or your preferred code editor.
- Build and run the project.
To apply the database migrations and update the database schema, run the following commands in the project directory:
dotnet ef migrations add InitialCreate
dotnet ef database update