public void Given_DashboardRepository_When_DeletingMoreDashboards_Then_TheDashboardsShouldBeProperlyRemoved() { RunOnDatabase(sut => { //Arrange var repository = new DashboardRepository(sut); var dashboard = Dashboard.Create(new DateTime(2017, 12, 16), "leisure"); var secondDashboard = Dashboard.Create(new DateTime(2017, 11, 11), "housework"); var thirdDashboard = Dashboard.Create(new DateTime(2017, 5, 5), "housework"); //Act repository.Add(dashboard); repository.Add(secondDashboard); repository.Add(thirdDashboard); repository.Delete(dashboard.Id); repository.Delete(secondDashboard.Id); repository.Delete(thirdDashboard.Id); //Assert var dashboards = repository.GetAll(); Assert.AreEqual(0, dashboards.Count); }); }