3.2 Specification Tests

BrewUpErp is an end‑to‑end sample ERP built to demonstrate:

  • Domain‑Driven Design (DDD)
  • Modular / bounded‑context architecture
  • Functional‑style domain modelling
  • Clean, testable application layers

The solution is intentionally realistic but still small enough to study. It consists of:

  • BrewApi – backend HTTP API (ASP.NET Core, .NET 10)
  • BrewSpa – Blazor web front‑end
  • BrewApp – .NET MAUI mobile application

Note: this repository is a work in progress. Expect breaking changes and incomplete features, especially in less‑used flows.

				
					using Microsoft.EntityFrameworkCore;

public class AppDbContext : DbContext
{
    public DbSet<L1078Record> L1078 => Set<L1078Record>();

    public AppDbContext(DbContextOptions<AppDbContext> options) : base(options) { }

    protected override void OnModelCreating(ModelBuilder modelBuilder)
    {
        modelBuilder.Entity<L1078Record>()
            .HasKey(x => x.PKREGID);

        modelBuilder.Entity<L1078Record>()
            .HasIndex(x => x.F1275);
    }
}