public void InschrijvingGetTest() { using (var repo = new InschrijvingRepositoryMock()) { Assert.AreEqual(0, repo.TimesCalled); var target = new InschrijvingController(repo); target.Get(1); Assert.AreEqual(1, repo.TimesCalled); } }
public void InschrijvingGetReturned200Test() { using (var repo = new InschrijvingRepositoryMock()) { Assert.AreEqual(0, repo.TimesCalled); var target = new InschrijvingController(repo); dynamic result = target.Get(1); Assert.AreEqual(1, repo.TimesCalled); Assert.AreEqual(200, result.StatusCode); } }