Enforcing Architecture in .NET with tests

  Рет қаралды 1,476

LaylaCodesIt

LaylaCodesIt

Күн бұрын

In this video, we delve into architecture testing and compare two testing libraries, NetArchTest and ArchUnitNet.
NetArchTest - github.com/Ben...
ArchUnitNet - archunitnet.re...
Fluent Assertions - fluentassertio...
.NET Rocks Podcast - www.dotnetrock...
A big thank you to Patreons 🎉
🤗Support the channel and gain access to source code on Patreon ➠ / laylacodesit
#dotnet #webdevelopment #csharp #softwarearchitecture
🎞️ Chapters
00:00 Intro
00:46 Contributing factors to spaghetti code
04:07 Introducing Architecture Tests
05:26 NetArchTest Demo
12:58 ArchUnitNet Demo
19:22 Comparing the two libraries
21:44 Summary and Outro
23:21 Spaghetti Horror ;)

Пікірлер: 11
@yoctoscript
@yoctoscript 11 ай бұрын
Loving your content!
@laylacodesit
@laylacodesit 11 ай бұрын
Yay! I'm happy to hear!
@karenpayne222
@karenpayne222 11 ай бұрын
I was contracted to work on code back in 1994 done by a professional developer who left then for five years business side worked on the code. By the time I saw the code it was a mess. Spent two weeks just figuring the mess left then a month on fixing issues done by non-developers. After several months to finish fixes and enhancements moved on to a similar project. Several years later went to a similar company for three months to do the exact same work.
@laylacodesit
@laylacodesit 11 ай бұрын
Wow, that must have been very frustrating but oddly satisfying to get it ship-shape?
@Pezsmapatkany
@Pezsmapatkany 11 ай бұрын
This channel will grow big!
@laylacodesit
@laylacodesit 11 ай бұрын
I hope your prediction comes true!
@thindal
@thindal 11 ай бұрын
I just recently worked with a customer that was in the middle of changing both their code style and architecture. The problem? Neither was documented at all, not in code, not in documentation. It was just assumed that everyone was on the same page and would never do mistakes. Does anyone know if it's possible to run these tests as warnings instead, to gradually move over to the new architecture format as the code gets worked on? Great intro on the subject, I never thought of running tests on the architecture of my application instead of just the functionality.
@laylacodesit
@laylacodesit 11 ай бұрын
You can set up a lot of styling using an editorconfig file - that shows up with intellisense and as compiler warnings I believe. I'm not sure how you could get the tests to show as warnings - some kind of custom IDE pludin perhaps?
@taylorkoepp3048
@taylorkoepp3048 11 ай бұрын
I also prefer NUnit, possibly because it's what I'm used to. I did try xUnit but I couldn't find any obvious benefit (to me at least) to switching.
Web APIs in .NET | C# #coding
1:00
LaylaCodesIt
Рет қаралды 539
Bob Nystrom - Is There More to Game Architecture than ECS?
23:06
Roguelike Celebration
Рет қаралды 198 М.
小宇宙竟然尿裤子!#小丑#家庭#搞笑
00:26
家庭搞笑日记
Рет қаралды 32 МЛН
CHOCKY MILK.. 🤣 #shorts
00:20
Savage Vlogs
Рет қаралды 27 МЛН
НЫСАНА КОНЦЕРТ 2024
2:26:34
Нысана театры
Рет қаралды 1,8 МЛН
A Pragmatic Approach to the Solid Principles in .NET
12:12
LaylaCodesIt
Рет қаралды 1,3 М.
Why We ALL Use xUnit over NUnit or MSTest?
17:51
Gui Ferreira
Рет қаралды 8 М.
Turns out REST APIs weren't the answer (and that's OK!)
10:38
Dylan Beattie
Рет қаралды 138 М.
Brutally honest advice for new .NET Web Developers
7:19
Ed Andersen
Рет қаралды 136 М.
Linus Torvalds: Speaks on Hype and the Future of AI
9:02
SavvyNik
Рет қаралды 153 М.
xUnit or NUnit? Picking the Right Testing Library
10:00
Nick Chapsas
Рет қаралды 47 М.
Don't Use Polly in .NET Directly. Use this instead!
14:58
Nick Chapsas
Рет қаралды 56 М.
The Clever Way to Count Tanks - Numberphile
16:45
Numberphile
Рет қаралды 916 М.
Лучшая защита экрана
0:40
Newtonlabs
Рет қаралды 83 М.
На что способен ваш компьютер?
0:34
📱магазин техники в 2014 vs 2024
0:41
djetics
Рет қаралды 874 М.
Todos os modelos de smartphone
0:20
Spider Slack
Рет қаралды 70 МЛН
Это iPhone 16
0:52
Wylsacom
Рет қаралды 3 МЛН