by Derek Jensen
Lessons:15Length:3.7 hours

For full access to all 15 lessons, including source files, subscribe with Elements.
- 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
Free Lesson 1.1Introduction00:40
Free Lesson
1.1
Introduction
00:40
Free Lesson 1.2Prerequisites and Dependency Management13:36
Free Lesson
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
Continue watching with Elements
Continue watching with Elements