public async Task FindAllLogsWithGivenParameters_WhenLogsExists()
        {
            var businessId = 1;
            var date       = DateTime.Now;

            var dateTimeWrapperMocked = new Mock <IDateTimeWrapper>();
            var paginatedListMocked   = new Mock <IPaginatedList <BusinessShortInfoDTO> >();
            var mappingProviderMocked = new Mock <IMappingProvider>();

            var createdOn = dateTimeWrapperMocked.Object.Now();

            BusinessTestUtils.GetContextWithLogs(nameof(FindAllLogsWithGivenParameters_WhenLogsExists), businessId, date);

            using (var assertContext = new AlphaHotelDbContext(BusinessTestUtils.GetOptions(nameof(FindAllLogsWithGivenParameters_WhenLogsExists))))
            {
                var businessService = new BusinessService(assertContext, mappingProviderMocked.Object, dateTimeWrapperMocked.Object, paginatedListMocked.Object);
                var result          = await businessService.DeleteLogsForDate(businessId, date);

                Assert.AreEqual(2, result);
            }
        }
        public async Task ChangeIsDeletedToTrue_WhenLogsMatched()
        {
            var businessId = 1;
            var date       = DateTime.Now;

            var dateTimeWrapperMocked = new Mock <IDateTimeWrapper>();
            var paginatedListMocked   = new Mock <IPaginatedList <BusinessShortInfoDTO> >();
            var mappingProviderMocked = new Mock <IMappingProvider>();

            var createdOn = dateTimeWrapperMocked.Object.Now();

            BusinessTestUtils.GetContextWithLogs(nameof(ChangeIsDeletedToTrue_WhenLogsMatched), businessId, date);

            using (var assertContext = new AlphaHotelDbContext(BusinessTestUtils.GetOptions(nameof(ChangeIsDeletedToTrue_WhenLogsMatched))))
            {
                var businessService = new BusinessService(assertContext, mappingProviderMocked.Object, dateTimeWrapperMocked.Object, paginatedListMocked.Object);
                var result          = await businessService.DeleteLogsForDate(businessId, date);

                Assert.AreEqual(2, assertContext.Logs.Count(l => l.IsDeleted == true));
                //Assert.IsTrue(assertContext.Logs.All(l => l.IsDeleted == true));
            }
        }