- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
Different testing tools may require code to be designed in certain ways.
While I don't like having to change my design philosophy just to support a testing tool, it's worth asking if it's a good tradeoff.
In the case of bUnit for Blazor, I found there's an expectation around having public mutable properties to control things from your tests. This isn't really a thing I like to have, personally.
I found my two immediate options were:
- Move to something like MVC or MVVM to get a view model extracted, minimizing the surface area for mutability
- ... Or just suck it up and go with the mutable property approach :)
Trying to prevent mutation in these situations may not be a huge benefit. Still early in my Blazor journey though.
Are you building Blazor apps?
Watch the full video here:
https://youtu.be/EXFHM5wonlM
----
📨 Sign up for my FREE email newsletter:
https://subscribe.devleader.ca
🗣️ Share with your network!
#Blazor #DotNet #CSharp #Testing
Видео Different testing tools may require code to be designed in certain ways. канала Dev Leader
In the case of bUnit for Blazor, I found there's an expectation around having public mutable properties to control things from your tests. This isn't really a thing I like to have, personally.
I found my two immediate options were:
- Move to something like MVC or MVVM to get a view model extracted, minimizing the surface area for mutability
- ... Or just suck it up and go with the mutable property approach :)
Trying to prevent mutation in these situations may not be a huge benefit. Still early in my Blazor journey though.
Are you building Blazor apps?
Watch the full video here:
https://youtu.be/EXFHM5wonlM
----
📨 Sign up for my FREE email newsletter:
https://subscribe.devleader.ca
🗣️ Share with your network!
#Blazor #DotNet #CSharp #Testing
Видео Different testing tools may require code to be designed in certain ways. канала Dev Leader
Комментарии отсутствуют
Информация о видео
3 января 2025 г. 11:39:08
00:00:24
Другие видео канала




















