public async Task ShouldUpdateVenue() { string newVenueName = "Venue name "; string newVenueAddress = "Testing gate 216"; VenueService venueService = new VenueService(_dbContext, _mainEventProvider); SecurityService securityService = new SecurityService(_dbContext, _userManager, _roleManager); VenueController venueController = new VenueController(venueService, securityService); CreateUser(); CreateVenues(); SetUser(venueController, _createdUser.Entity.Id); VenueVm venueVm = new VenueVm { Id = 2, Name = newVenueName, Address = newVenueAddress, PostalCode = _postalCode2, ContactEMail = _contactEMail2, ContactPhone = _contactPhone2, OrganizerId = 2 }; await venueController.UpdateVenueAsync(venueVm); // Check that only one has been changed Venue venue2 = _dbContext.Venues.Find(2); Assert.AreEqual(newVenueName, venue2.Name); Assert.AreEqual(newVenueAddress, venue2.Address); }