Пример #1
0
        public void UpdateWinkelTest()
        {
            Winkel winkel = new Winkel("testwinkel")
            {
                Winkellocatie = "Amsterdam"
            };

            Repo.AddWinkel(winkel);
            winkel.Winkellocatie = "De Bilt";
            Repo.UpdateWinkel(winkel);
            Winkel updatedWinkel = Repo.GetWinkelBijId(winkel.WinkelId);

            Assert.IsTrue(updatedWinkel.Winkellocatie == "De Bilt");
        }
Пример #2
0
 public ActionResult UpdateWinkel(Winkel winkel)
 {
     Repo.UpdateWinkel(winkel);
     return(Ok());
 }