Using FakeItEasy for mocking and stubbing for unit testing in C# 11 and .NET 7
#unittesting #csharp #dotnet #fake #mock #csharp11 #dotnet7
00:00 - Introduction
00:40 - Explaining of classes that we will unit test
02:42 - NuGet package for FakeItEasy
03:06 - Creating fake objects using FakeItEasy
05:08 - Creating fake method returns using FakeItEasy
06:40 - Issue with non-virtual method faking
08:30 - Writing assets statements using NUnit
09:20 - Inspect if a method was called using FakeItEasy
10:30 - Passing fake parameters to a method
11:25 - Issue with keeping fake objects at the class lever
12:55 - Asserting exception using NUnit
14:12 - How to verify the order of method calls inside of the test subject using FakeItEasy
17:50 - Throw exception from a fake method using FakeItEasy
18:06 - Fake a lambda function using FakeItEasy
18:30 - Create stubbed object collection using FakeItEasy
Some of my popular videos:
Elasticsearch with .NET and introduction: https://youtu.be/9tkrDqMbFMg
Hangfire Scheduling an introduction: https://youtu.be/sQyY0xvJ4-o
ASP.NET Core Authentication with JWT (JSON Web Token): https://youtu.be/vWkPdurauaA
Running Background tasks using IHostedService and BackgroundService (In ASP.NET Core 3.1): https://youtu.be/1Fe7QD7Ovi8
How to build an API Gateway in ASP.NET Core using Ocelot (Build API Gateway in a few minutes): https://youtu.be/hlUGZ6Hmv6s
My blog site: https://dotnetcorecentral.com
Видео Using FakeItEasy for mocking and stubbing for unit testing in C# 11 and .NET 7 канала DotNet Core Central
00:00 - Introduction
00:40 - Explaining of classes that we will unit test
02:42 - NuGet package for FakeItEasy
03:06 - Creating fake objects using FakeItEasy
05:08 - Creating fake method returns using FakeItEasy
06:40 - Issue with non-virtual method faking
08:30 - Writing assets statements using NUnit
09:20 - Inspect if a method was called using FakeItEasy
10:30 - Passing fake parameters to a method
11:25 - Issue with keeping fake objects at the class lever
12:55 - Asserting exception using NUnit
14:12 - How to verify the order of method calls inside of the test subject using FakeItEasy
17:50 - Throw exception from a fake method using FakeItEasy
18:06 - Fake a lambda function using FakeItEasy
18:30 - Create stubbed object collection using FakeItEasy
Some of my popular videos:
Elasticsearch with .NET and introduction: https://youtu.be/9tkrDqMbFMg
Hangfire Scheduling an introduction: https://youtu.be/sQyY0xvJ4-o
ASP.NET Core Authentication with JWT (JSON Web Token): https://youtu.be/vWkPdurauaA
Running Background tasks using IHostedService and BackgroundService (In ASP.NET Core 3.1): https://youtu.be/1Fe7QD7Ovi8
How to build an API Gateway in ASP.NET Core using Ocelot (Build API Gateway in a few minutes): https://youtu.be/hlUGZ6Hmv6s
My blog site: https://dotnetcorecentral.com
Видео Using FakeItEasy for mocking and stubbing for unit testing in C# 11 and .NET 7 канала DotNet Core Central
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![Easy way to limit rate of API requests using Rate Limiter middleware](https://i.ytimg.com/vi/XW_OM9TGrHg/default.jpg)
![Cache and Trace in RepoDb (.Net Core)](https://i.ytimg.com/vi/6p0KE2TFYJk/default.jpg)
![Dependency Injection for .Net Core Console running in Docker](https://i.ytimg.com/vi/2TgWRfOnOc0/default.jpg)
![Extension Methods (An Introduction for .NET Developers [.NET 5 and C#])](https://i.ytimg.com/vi/v_cgQzp8YHQ/default.jpg)
![Memento Design Pattern (An Introduction for .NET Developers [.NET 6 and C# 10])](https://i.ytimg.com/vi/G82F85SqYUs/default.jpg)
![.Net Core application with background Thread on Docker](https://i.ytimg.com/vi/UmS5DRHWmbI/default.jpg)
![Callback function for API rate limiter and Sliding window rate limiter](https://i.ytimg.com/vi/QC_qMmBr-wE/default.jpg)
![Concurrency rate limiter to limit request rate for ASP.NET Web API](https://i.ytimg.com/vi/p30BRMVj6KE/default.jpg)
![How to pass test parameters to MSTest methods [C# 11/.NET 7]](https://i.ytimg.com/vi/XFn-rQ-C2Cg/default.jpg)
![How to pass input parameter to XUnit test methods](https://i.ytimg.com/vi/K1pv7JCU-40/default.jpg)
![Collection Expressions in C# 12/.NET 8 #csharp #dotnetcore #dotnet #coding #dotnet8](https://i.ytimg.com/vi/GbUzlRVJ1ek/default.jpg)
![Welcome to .Net Core Central](https://i.ytimg.com/vi/lHV_5JCg7qQ/default.jpg)
![Lambda default parameter in C# 12/.NET 8](https://i.ytimg.com/vi/-ydw_uNQPZI/default.jpg)
![Use CsvHelper for writing and reading CSV files](https://i.ytimg.com/vi/5Zd2kBlqY8s/default.jpg)
![Extremely easy way to bulk insert data into SQL Server using SqlBulkCopy class](https://i.ytimg.com/vi/WBxuwJUazGM/default.jpg)
![What is NoSQL? And what is the difference between NoSQL and SQL (or RDBMS)](https://i.ytimg.com/vi/o-4Q2NCFhsM/default.jpg)
![Class, Constructor, Function, and Property in C# [C# Fundamental series, examples in .NET 6 ]](https://i.ytimg.com/vi/RpuuThqrKmY/default.jpg)
![AWS Compute Services basics [An Introduction for .NET Developers]](https://i.ytimg.com/vi/RkpMfEH4_3I/default.jpg)
![How to use Assert in MSTest for Unit Testing (C# 11/.NET 7)](https://i.ytimg.com/vi/w0SySMdRjk4/default.jpg)
![Return, Break, Continue and Goto in C# [C# Fundamental series, examples in .NET 6 ]](https://i.ytimg.com/vi/QjF8_GF57o8/default.jpg)