public void Read_returns_specific_item() { Gutachter result = _sut.Read(2); Assert.That(result.Id, Is.EqualTo(2)); Assert.That(result.Vorname, Is.EqualTo("Klaus")); }
public ActionResult Index() { ViewBag.Title = "Home Page"; Gutachter gutachter = _repository.Read(1); return(View( new { Gutachter = gutachter, HelloWorld = "Hello World" }.ToExpando() )); }
// GET api/values/5 public Gutachter Get(int id) { return(_repository.Read(id)); }