public void Update_ShouldUpdateBestelling_When_AnUpdatedBestelling_IsGiven() { // Arrange Bestelling bestelling = new BestellingBuilder().SetDummy().Create(); Bestelling bestellingUpdate = bestelling; bestellingUpdate.BestelStatus = BestelStatus.Goedgekeurd; var dataMapper = new BestellingDataMapper(_context); dataMapper.Insert(bestelling); // Act dataMapper.Update(bestellingUpdate); Bestelling result = dataMapper.GetByFactuurnummer(bestellingUpdate.Factuurnummer); // Assert Assert.IsNotNull(result); Assert.IsTrue(result.IsEqual(bestellingUpdate)); }