Exemple #1
0
        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"));
        }
Exemple #2
0
        public ActionResult Index()
        {
            ViewBag.Title = "Home Page";

            Gutachter gutachter = _repository.Read(1);

            return(View(

                       new
            {
                Gutachter = gutachter,
                HelloWorld = "Hello World"
            }.ToExpando()

                       ));
        }
Exemple #3
0
 // GET api/values/5
 public Gutachter Get(int id)
 {
     return(_repository.Read(id));
 }