The Rules For TESTABLE C# Code Design - Part 1 - Framework

Code It Up by AMBITIONED
Code It Up by AMBITIONED
7.4 هزار بار بازدید - 5 سال پیش - 💻 DOWNLOAD THE SOURCE CODE
💻 DOWNLOAD THE SOURCE CODE 👉 https://bit.ly/my-source-ciu 👈
🔔 SUBSCRIBE FOR MORE C# LESSONS 👉 http://bit.ly/mytestedaspnet 👈

In this video series, you will learn how to write clean and testable C# code. In the first part, I show the system under test and how to assert the framework of your choice. The code starts with bad design and lots of smells. Throughout the tutorial, I use refactoring and best practices to make it more testable in terms of proper architecture and structure. Each code change is then asserted with proper unit test automation, following the "Arrange, Act, Assert" paradigm. ASP.NET Core is used as an example, but the concepts shown can be transferred to any kind of application - Desktop, Web API, Game, Single Page Application, and so on. xUnit, Visual Studio, and 'dotnet test' are used as testing tools. The code becomes easier for faking and mocking, because of the SOLID principles and the dependency injection shown after the refactoring process.

► My Tested ASP.NET Source Code: https://github.com/ivaylokenov
► My Tested ASP.NET Website: https://mytestedasp.net

★★ BECOME A BACKER OR SPONSOR ★★
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
► Patreon: Patreon: ivaylokenov
► OpenCollective: https://opencollective.com/mytestedas...
► PayPal: http://paypal.me/ivaylokenov
► Buy Me A Coffee: http://buymeacoff.ee/ivaylokenov

★★ Follow My Tested ASP.NET ★★
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
► Instagram: Instagram: mytestedaspnet
► Twitter: Twitter: MyTestedASPNET
► Facebook: Facebook: mytestedaspnet
► LinkedIn: LinkedIn: mytestedaspnet

★★ Follow Me ★★
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
► Instagram: Instagram: ivaylokenov
► Facebook: Facebook: ivaylo.kenov
► LinkedIn: LinkedIn: kenov
5 سال پیش در تاریخ 1398/11/09 منتشر شده است.
7,451 بـار بازدید شده
... بیشتر