public async void LunchRepository_UpdateUserAsync_UpdatesUser() { // arrange LunchContext context = GetContext(); LunchRepository target = new LunchRepository(context); UserEntity user = context.Users.Add(new UserEntity() { Name = "Tahra Dactyl", Nopes = "[]", }).Entity; await context.SaveChangesAsync(); string name = "Paul R. Baer"; List <string> nopes = new List <string> { "Chum Bucket", "Jimmy Pesto's Pizzaria" }; // act await target.UpdateUserAsync(user.Id, name, nopes, "90210"); // assert UserEntity updatedUser = await context.Users.FirstOrDefaultAsync(u => u.Id == user.Id); Assert.Equal(name, updatedUser.Name); Assert.Equal(JsonConvert.SerializeObject(nopes), updatedUser.Nopes); Assert.Equal("90210", updatedUser.Zip); }