How To Mock Dependencies In Unit Test

How To Mock Dependencies In Unit Test

Channel:
Subscribers:
4,380
Published on ● Video Link: https://www.youtube.com/watch?v=SHUaAz5ISqQ



Duration: 17:09
566 views
7


The first 1,000 people to use this link will get a 1 month free trial of Skillshare: https://skl.sh/devchannel11211

In today's video, we are going to create a simple .NET project and write Unit tests for it. We are using Visual Studio, xUnit and FluentAssertions to complete this task. For Mocking we are using Moq4 as framework of choice.


Instagram Business ► https://www.instagram.com/patrick_visuals/
Instagram Personal► https://www.instagram.com/patrick.schadler/
Twitter ► https://twitter.com/patzistar
GitHub ► https://github.com/DonkeyKongJr
Business Inquiries ► patrick.schadler@me.com

Equipment
Desk ► https://ergochord.com/english
Monitor ► LG 38WN95C
Mouse ► Logitech MX Master 2S
Keyboard ► Logitech G915
Audio ► Rode ProCaster, FetHead and Scarlett Solo
Tablet ► iPad Pro 11 2021
Camera ► Canon EOS R5 & Canon EOS R
Phone ► iPhone 12 Pro Max
PC ► Custom Made (Ryzen 5900X, 64 GB RAM, 2TB MP600 SSD, 3TB HDD, PowerColor Red Devil RX5700XT)o







Tags:
Unit tests
Mock dependencies
Moq4
Unit test mock
Unit test interface
Unit test virtual
.net
.net Core
C#
Xunit
Fluentassertions