Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Scenario.New("Controller is spawned", scenario =>
- {
- scenario.
- Given("that there is one changeset in the repository", () =>
- {
- var changesets = new List<Changeset>();
- changesets.Add(new Changeset());
- repositoryMock.Setup(r => r.Get()).Returns(changesets);
- });
- scenario.When("the Controller is created", () =>
- controller = new CheckInNotificationController(viewModel, repositoryMock.Object));
- scenario.Then("it should get latest checkin from the ChangesetRepository", () =>
- repositoryMock.Verify(r => r.Get()));
- }).Execute();
Add Comment
Please, Sign In to add comment