Egil Hansen

Information & Communications Technology

.net core Blazor ASP.NET C#.Net Clean Architecture Design Patterns TDD

Reykjavík, Capital Region, Iceland

Egil Hansen

Principal Developer at Delegate, Microsoft MVP, creator of bUnit and AngleSharp.Diffing

Experienced software architect, developer, and Microsoft MVP, with a strong focus on creating maintainable software that solves real business problems, using techniques such as domain-driven design, test-driven development and following clean-code principles.

Egil is also the creator and maintainer of bUnit, an open source library for testing Blazor components, and AngleSharp.Diffing, a library for semantic comparison of HTML in C#.

From a developer focused perspective, Egil is a polyglot full-stack developer with experience in technologies ranging from HTML, CSS, Blazor, JavaScript/TypeScript on the frontend, and C# (.NET Core), Groovy/Grains, MySql, MS SQL Server, to PL/1 and DB2 on IBM mainframes. Primary focus these days is C# and .NET Core.

Egil streams regularly on Twitch at

Current sessions

Best Practices for Unit Testing Blazor Components with bUnit

Why create tests of UI components? Isn’t UI tests inherently brittle, run slowly, and hard to maintain?

The answer is no, at least not with bUnit. bUnit is a testing library built to make writing tests for Blazor components feel like writing tests for plain old C# objects (POCOs), which means a lot of the good practices we know from unit testing carries over, as well as the benefits.

This presentation will give a brief introduction to bUnit and then dive into some of the best practices for writing components tests, tests which results in both stable and maintainable test suites as well as maintainable Blazor components.

Past and future events

BlazorDay 2021

16 Jun 2021

Blazor Conf - Bhubaneswar

11 Jun 2021