public void EntityPutTest() { using (var repo = new RepositoryMock()) { Assert.AreEqual(0, repo.TimesCalled); var target = new EntitiesController(repo); target.Put(new Entity()); Assert.AreEqual(1, repo.TimesCalled); } }