Загрузка страницы

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
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
5 декабря 2022 г. 7:00:00
00:19:22
Яндекс.Метрика