Sponsor our weekly .NET and C# newsletter

Claude Code .NET app with unit tests, comments & prompts

David Grace David Grace

Download an AI generated .NET application using Claude Code. It features projects, unit tests, comments as well as the specs and plans used.

You can learn more about why AI is better at these .NET tasks than developers, or watch the video:

Download the code example

You'll need to fill out the code example form. We will send you an email where you can download the code example.

Software

This is the software that will need to be installed onto your machine.

Import the database

This application integrates with a SQL Server database. Inside the Database folder, there is RoundTheCode_Ecommerce.bacpac and RoundTheCode_Ecommerce.bak. Use either of these database backups to import the database to your local SQL Server database server.

The application

Inside Application/Web/Api/appsettings.Development.json, find ConnectionStrings:EcommerceDbContextand point the connection string to your imported database.

Open up RoundTheCode.ECommerce.slnx, and run the application. The Swagger documentation will load at https://localhost:7266/swagger with this endpoint:

  • /api/products (GET) - Gets all the products that are not deleted

Prompts used

The prompts that were used can be found in Prompts.md.

Specification files

The specification files used with Claude Code to create the project and unit tests as well as adding the comments can be found in the Prompts folder.

Plan files

The plans that Claude Code generated before following and building the rules in the specification files can be found in the Plans folder.

Download this code example

Enter your email and we'll send you a download link.

Download this code example

Enter your email and we'll send you a download link.