public void Database_Delete_PendingAdd() { //arrange var newEvent = new Event { Title = "Sample Event", Description = "Sample Event Description", StartDateTime = DateTime.Now, EndDateTime = DateTime.Now.AddHours(1), RegistrationType = new RegistrationType(), Registrations = new List <Registration>(), EventType = new EventType(), Status = new Status(), LocationInformation = "At some new location", LogoPath = "http://google/someimage", }; //act Context.Events.Add(newEvent); Context.SaveChanges(); Context.DeleteDataFromDbSet(Context.Events); //assert Context.Events.Count().ShouldBe(0); }