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"); }
public ActionResult UpdateWinkel(Winkel winkel) { Repo.UpdateWinkel(winkel); return(Ok()); }