Guest User

Untitled

a guest
Jun 24th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. Scenario.New("Controller is spawned", scenario =>
  2. {
  3. scenario.
  4. Given("that there is one changeset in the repository", () =>
  5. {
  6. var changesets = new List<Changeset>();
  7. changesets.Add(new Changeset());
  8. repositoryMock.Setup(r => r.Get()).Returns(changesets);
  9. });
  10.  
  11. scenario.When("the Controller is created", () =>
  12. controller = new CheckInNotificationController(viewModel, repositoryMock.Object));
  13.  
  14. scenario.Then("it should get latest checkin from the ChangesetRepository", () =>
  15. repositoryMock.Verify(r => r.Get()));
  16. }).Execute();
Add Comment
Please, Sign In to add comment