public async Task GetAllErrors()
        {
            //arrange
            var DetailLogRepository   = new DetailLogRepository(_context, PollyTestFactory.CreateAsyncRetryPolicy());
            var errorLogDisplaySearch = new ErrorLogCollectionSearch();
            //act
            var value = await DetailLogRepository.GetAllErrors(errorLogDisplaySearch);

            //assert
            Assert.Equal(6, value.Count());
        }
        public async Task GetAllErrors_RequestPath_Count(string requestPath, int expected)
        {
            //arrange
            var DetailLogRepository   = new DetailLogRepository(_context, PollyTestFactory.CreateAsyncRetryPolicy());
            var errorLogDisplaySearch = new ErrorLogCollectionSearch()
            {
                RequestPath = requestPath
            };
            //act
            var value = await DetailLogRepository.GetAllErrors(errorLogDisplaySearch);

            //assert
            Assert.Equal(expected, value.Count());
        }
        public async Task GetAllErrors_DateToSearch_Count(string dateTo, int expected)
        {
            //arrange
            var DetailLogRepository   = new DetailLogRepository(_context, PollyTestFactory.CreateAsyncRetryPolicy());
            var errorLogDisplaySearch = new ErrorLogCollectionSearch()
            {
                DateTo = DateTime.Parse(dateTo)
            };
            //act
            var value = await DetailLogRepository.GetAllErrors(errorLogDisplaySearch);

            //assert
            Assert.Equal(expected, value.Count());
        }
        public async Task GetAllErrors_Search_Count()
        {
            //arrange
            var DetailLogRepository   = new DetailLogRepository(_context, PollyTestFactory.CreateAsyncRetryPolicy());
            var errorLogDisplaySearch = new ErrorLogCollectionSearch()
            {
                Assembly = "Hippologamus.API",
                DateFrom = new DateTime(2020, 1, 2),
                DateTo   = new DateTime(2020, 1, 5)
            };
            //act
            var value = await DetailLogRepository.GetAllErrors(errorLogDisplaySearch);

            //assert
            Assert.Equal(3, value.Count());
        }