public void UpdateAddress() { //Arrange var address = Repository.GetFirst <Address>(); address.Address1 = $"Updated-{address.Address1}"; address.Address2 = $"Updated-{address.Address2}"; address.City = $"Updated-{address.City}"; address.State = $"Updated-{address.State}"; address.Zip = $"Updated-{address.Zip}"; address.Plus4 = $"Updated-{address.Plus4}"; address.IsCurrent = !address.IsCurrent; address.IsHistorical = !address.IsHistorical; address.Accuracy = $"Updated-{address.Accuracy}"; //Act Repository.Update(address); Repository.Save(); //Assert Assert.NotNull(address.ModifiedDateTime); Assert.True(address.ModifiedDateTime.Value.Date == DateTime.Today); }
public void Update(RecipeFamily changedRecipeFamily) { recipeFamilyRepository.Update(changedRecipeFamily); }
public void Update(Recipe changedRecipe) { recipeRepository.Update(changedRecipe); }
public void Update(Ingredient Ingredient) { ingredientRepository.Update(Ingredient); }