Back to Projects

BlazorCrudDemo — Clean Architecture Showcase

C#.NET CoreBlazor ServerEntity Framework CoreSignalRSQL ServerxUnitAutoMapper
BlazorCrudDemo — Clean Architecture Showcase

Overview

A production-ready .NET CRUD application demonstrating clean layered architecture, SOLID principles, and real-time SignalR updates. Built as a personal reference implementation for enterprise .NET patterns including the Repository pattern, dependency injection, and AutoMapper.

Challenges

  • Structuring a Blazor Server application that cleanly separates data access, business logic, and presentation concerns
  • Implementing real-time updates without tight coupling between the SignalR hub and business logic layers
  • Achieving meaningful test coverage on a Blazor Server component architecture

Solutions

  • Applied strict layered architecture: Data Access → Business Logic → Presentation, with interfaces at every boundary
  • Injected the SignalR hub as a notification service, keeping business logic decoupled from transport concerns
  • Wrote xUnit tests targeting the service and repository layers independently, achieving 85% coverage

Languages & Tools

C#
.NET Core
Blazor Server
Entity Framework Core
SignalR
SQL Server
xUnit
AutoMapper

Key Stats

85%
xUnit code coverage
3
Architectural layers (Data, BLL, UI)