public async Task AllRequestsShouldReturnNotNullTest()
        {
            var dbContext = ApplicationDbContextInMemoryFactory.InitializeContext();

            MapperInitializer.InitializeMapper();

            var requestRepository             = new EfDeletableEntityRepository <Request>(dbContext);
            var hospitalDataRequestRepository = new EfDeletableEntityRepository <HospitalDataRequest>(dbContext);
            var hospitalDataRepository        = new EfDeletableEntityRepository <HospitalData>(dbContext);
            var recipientReques    = new EfDeletableEntityRepository <RecipientRequest>(dbContext);
            var locationRepository = new EfDeletableEntityRepository <Location>(dbContext);

            var service = new RequestsService(
                requestRepository,
                hospitalDataRequestRepository,
                hospitalDataRepository,
                recipientReques,
                locationRepository);

            await SeedDataAsync(dbContext);

            var result = service.AllRequests <RequestInfoViewModel>(null).Count();

            Assert.Equal(1, result);
        }
        public async Task DeleteAsyncRequestCorrectlyTest()
        {
            var dbContext = ApplicationDbContextInMemoryFactory.InitializeContext();

            MapperInitializer.InitializeMapper();

            var requestRepository             = new EfDeletableEntityRepository <Request>(dbContext);
            var hospitalDataRequestRepository = new EfDeletableEntityRepository <HospitalDataRequest>(dbContext);
            var hospitalDataRepository        = new EfDeletableEntityRepository <HospitalData>(dbContext);
            var recipientReques    = new EfDeletableEntityRepository <RecipientRequest>(dbContext);
            var locationRepository = new EfDeletableEntityRepository <Location>(dbContext);

            var service = new RequestsService(
                requestRepository,
                hospitalDataRequestRepository,
                hospitalDataRepository,
                recipientReques,
                locationRepository);

            await SeedDataAsync(dbContext);

            var request = requestRepository.All().FirstOrDefault();

            await service.DeleteAsync(request.Id);

            var result = service.AllRequests <RequestInfoViewModel>(null).Count();

            Assert.Equal(0, result);
        }