Clean mocking for unit tests using NSubstitute in .NET (Core, Framework, Standard)
Subscribe: http://bit.ly/ChapsasSub
Become a Patreon and get source code access: https://www.patreon.com/nickchapsas
The giveaway is now over. Thanks for participating.
Hello everybody I'm Nick and in this .NET tutorial I will show you how you can get started with mocking external dependencies in unit testing using NSubstitute. NSubstitute is, in my opinion, the best mocking framework for unit tests in .NET and I highly recommend it.
NSubstitute detailed documentation: https://nsubstitute.github.io/help/getting-started/
In object-oriented programming, mock objects are simulated objects that mimic the behavior of real objects in controlled ways, most often as part of a software testing initiative. A programmer typically creates a mock object to test the behavior of some other object, in much the same way that a car designer uses a crash test dummy to simulate the dynamic behavior of a human in vehicle impacts.
Don't forget to comment, like and subscribe :)
Social Media:
Follow me on GitHub: http://bit.ly/ChapsasGitHub
Follow me on Twitter: http://bit.ly/ChapsasTwitter
Connect on LinkedIn: http://bit.ly/ChapsasLinkedIn
#dotnet #tests #mocking
Видео Clean mocking for unit tests using NSubstitute in .NET (Core, Framework, Standard) канала Nick Chapsas
Become a Patreon and get source code access: https://www.patreon.com/nickchapsas
The giveaway is now over. Thanks for participating.
Hello everybody I'm Nick and in this .NET tutorial I will show you how you can get started with mocking external dependencies in unit testing using NSubstitute. NSubstitute is, in my opinion, the best mocking framework for unit tests in .NET and I highly recommend it.
NSubstitute detailed documentation: https://nsubstitute.github.io/help/getting-started/
In object-oriented programming, mock objects are simulated objects that mimic the behavior of real objects in controlled ways, most often as part of a software testing initiative. A programmer typically creates a mock object to test the behavior of some other object, in much the same way that a car designer uses a crash test dummy to simulate the dynamic behavior of a human in vehicle impacts.
Don't forget to comment, like and subscribe :)
Social Media:
Follow me on GitHub: http://bit.ly/ChapsasGitHub
Follow me on Twitter: http://bit.ly/ChapsasTwitter
Connect on LinkedIn: http://bit.ly/ChapsasLinkedIn
#dotnet #tests #mocking
Видео Clean mocking for unit tests using NSubstitute in .NET (Core, Framework, Standard) канала Nick Chapsas
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
How to write cleaner unit tests with Fluent Assertions in .NET Core (Framework, Standard)How to collect metrics and create dashboards using Grafana, Prometheus and AppMetrics in .NET CoreThe refactoring test (1) - Dependency Inversion & Unit tests | Cracking the .NET interview8 await async mistakes that you SHOULD avoid in .NETMocking with NSubstituteGenerating realistic fake data in .NET using BogusWhere are types allocated in .NET and why people get it so wrongUnit Tests and Test Doubles like Mocks, Stubs & FakesClean ASP.NET Core API using MediatR and CQRS | SetupGetting started with Behavior Driven Development (BDD) in .NET using SpecFlow.NET 5 REST API Tutorial 10 - Unit Testing and TDD5 technologies that I will be learning in 2021 as a .NET developerBenchmarking C# code using BenchmarkDotNetHow much do .NET developers make in the UK in 2021?Make your microservice resilient with Polly's Circuit Breaker | .NET CoreAutofixture - Adam StorrWriting tests in .NET using xUnit - xUnit TutorialThe API Integration coding test (1) - Implementation | Cracking the .NET interviewAre comments in code actually a bad practice?What is Boxing in C# and how it affects memory and speed