- Overview
- Transcript
4.3 Basic Moq Setup
This lesson shows how the Moq library can help us write unit tests within TDD that can give us control over the external dependencies we run into.
1.Introduction2 lessons, 14:16
2 lessons, 14:16
1.1Introduction00:40
1.1
Introduction
00:40
1.2Prerequisites and Dependency Management13:36
1.2
Prerequisites and Dependency Management
13:36
2.Unit Testing With NUnit4 lessons, 1:04:16
4 lessons, 1:04:16
2.1Writing Basic Unit Tests16:53
2.1
Writing Basic Unit Tests
16:53
2.2Test Clean Up12:46
2.2
Test Clean Up
12:46
2.3Assertions18:25
2.3
Assertions
18:25
2.4Exceptions16:12
2.4
Exceptions
16:12
3.Basics of TDD4 lessons, 1:23:27
4 lessons, 1:23:27
3.1Shopping Cart Project Requirements04:28
3.1
Shopping Cart Project Requirements
04:28
3.2Building the CartItem Functionality36:22
3.2
Building the CartItem Functionality
36:22
3.3Building the Cart Functionality30:27
3.3
Building the Cart Functionality
30:27
3.4Common Code Smells12:10
3.4
Common Code Smells
12:10
4.External Dependencies4 lessons, 59:04
4 lessons, 59:04
4.1Fakes, Stubs, and Mocks (oh my!)10:27
4.1
Fakes, Stubs, and Mocks (oh my!)
10:27
4.2Interfaces in C#17:08
4.2
Interfaces in C#
17:08
4.3Basic Moq Setup14:57
4.3
Basic Moq Setup
14:57
4.4Moq'ing a Database16:32
4.4
Moq'ing a Database
16:32
5.Conclusion1 lesson, 02:43
1 lesson, 02:43
5.1Wrap Up02:43
5.1
Wrap Up
02:43
Derek Jensen is a lifetime nerd that calls the Chicagoland area home. He is your typical family man that loves activities with his wonderful wife and three amazing children. He is huge sports buff (both playing and coaching) and loves football, baseball and basketball. He loves just about any technology he can get his hands on but spends most of him time on the server side of the world. His day job consists of writing highly transactional backend web services, data access layers, and n-tier applications using the .NET Framework in C#. At night, when he's not spending time with his family, he enjoys authoring Tuts+ Courses and creating ASP.NET MVC web sites and mobile apps for clients.