~/talk

How to create maintainable and testable Blazor components

Talkat Øredev 2022 · 2022-11-08..11-10· [testing]
slides:none on file

Concrete claim: a maintainable Blazor data-table is simpler when reflection logic moves to a helper and rendering splits into DataTableHeader and DataTableRow components so each one does one thing. Implementation uses a generic TItem, System.Reflection to read public instance properties, and dependency-abstraction for HTTP/DB. Tests use bUnit with a TestContext, Razor test files, semantic assertions like MarkupMatches and component queries via FindComponent, running fast without a real browser.

AI-written summary · about

  1. 0:00Start
  2. 6:23Properties of maintainable components
  3. 14:21Refactored
  4. 20:35Test of component
  5. 24:00Functionality testing-configure pizza dialog
  6. 25:52To verifying markup, do it semantically!
  7. 26:56Semantically verifying markup
  8. 28:20Semantic verification modifiers
  9. 29:20Creating maintainable tests
  10. 34:07Summary - testing
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.