Last active
June 2, 2018 11:32
-
-
Save FraukeN/288971a3d7739a566fa03f33b91ccf75 to your computer and use it in GitHub Desktop.
OverviewVM LoadData test with DI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public async Task LoadData_loads_data_from_repository() | |
{ | |
// Arrange | |
OverviewVM vm = new OverviewVM(new MockRepository()); | |
// Act | |
await vm.LoadData(); | |
// Assert | |
Assert.That(vm.ToDoItems.Count(), Is.EqualTo(3)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment