public void UpdateTest() { var repository = new ActivityRepository(); var activity = new Activity { Name = "Test activiteit", OrganizerEmail = "*****@*****.**" }; repository.Save(activity); repository.Save(activity); }
public void DeleteTest() { var repository = new ActivityRepository(); var activity = new Activity { Name = "Test activiteit", OrganizerEmail = "*****@*****.**" }; repository.Save(activity); repository.Delete(activity); // no exception = ok }
public void GetByIdTest() { var repository = new ActivityRepository(); var activity = new Activity { Name = "Test activiteit", OrganizerEmail = "*****@*****.**" }; repository.Save(activity); var persisted = repository.GetById(activity.Id); Assert.AreEqual(activity.Id, persisted.Id); }