예제 #1
0
        public void UpdateTest()
        {
            var repository = new ActivityRepository();

            var activity = new Activity { Name = "Test activiteit", OrganizerEmail = "*****@*****.**" };
            repository.Save(activity);

            repository.Save(activity);
        }
예제 #2
0
        public void DeleteTest()
        {
            var repository = new ActivityRepository();

            var activity = new Activity { Name = "Test activiteit", OrganizerEmail = "*****@*****.**" };
            repository.Save(activity);
            repository.Delete(activity);

            // no exception = ok
        }
예제 #3
0
        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);
        }