private async Task DashboardRepositoryFillerAsync(DashboardRepository dashboardRepository, IEnumerable <Dashboard> dashboards)
 {
     foreach (var dashboard in dashboards)
     {
         await dashboardRepository.AddAsync(dashboard);
     }
 }
        public async void DeleteByIdAsyncShouldDeleteCorrectDashboard()
        {
            var options = OverwatchOptionBuilder.CreateBuilderWithName("OverwatchDbDeleteDashboardByIdAsync");

            using (var overwatchContext = new OverwatchContext(options))
            {
                var       dashboardRepository = new DashboardRepository(overwatchContext);
                Dashboard dashboardToDelete   = _dashboards.First();
                await dashboardRepository.AddAsync(dashboardToDelete);

                var result = await dashboardRepository.DeleteByIdAsync(dashboardToDelete.Id);

                Assert.Equal(1, result);
            }
        }
        public async void GetByIdAsyncShouldReturnCorrectDashboard()
        {
            var options = OverwatchOptionBuilder.CreateBuilderWithName("OverwatchDbGetDashboardByIdAsync");

            using (var overwatchContext = new OverwatchContext(options))
            {
                var       dashboardRepository = new DashboardRepository(overwatchContext);
                Dashboard dashboardToFind     = _dashboards.First();
                await dashboardRepository.AddAsync(dashboardToFind);

                var result = await dashboardRepository.GetByIdAsync(dashboardToFind.Id);

                Assert.Equal(dashboardToFind, result);
            }
        }