This Repo shows an example to write ComponentTest For Apis using F# and Execto library.
- .NET SDK: Ensure you have the .NET 8 SDK installed.
- SQL Server: Ensure you have SQL Server installed and running.
- Open appsettings.json and update the DefaultConnection string with your SQL Server details(Create a new database from SQL server and update the connection string here).
Restore the NuGet packages required for the project
dotnet restore
Apply the Entity Framework Core migrations to set up the database schema.
dotnet ef database update --project ComponentTestDemo.Api
Build the project to ensure all dependencies are correctly set up
dotnet build
Open 2 Cmds and run followings
dotnet run --project ComponentTestDemo.Api
dotnet run --project ComponentTestDemo.Test