public void GetPracticesForLocation_When_executed_create_list_of_Practice_Events(int locationId, int expected) { // Insert seed data into the database using one instance of the context InitializeCalendar(); LoadCalendar(); DateTime startDate = DateTime.Now; var repository = new CalendarRepository(_context); var actual = repository.GetPracticesForLocation(locationId, startDate); Assert.Equal(expected, actual.Result.Count); }