public PackageFileStorageServiceTest()
        {
            IMapper mapper         = AutoMapperConfiguration.Configure().CreateMapper();
            var     storageOptions = new PackagesFileStorageOptions()
            {
                Path = PackagesFileHelper.GetPackagesFolderPath(null)
            };

            _packageFileStorageService = new PackageFileStorageService(storageOptions, mapper);
        }
        public void Read_ThrowException_DirectoryIsNotSet()
        {
            //setup
            TestPackageHelper.CleanPackagesDefaultDirectory(PackagesFileHelper.GetDefaultPackagesFolderFullPath());
            var storageOptions            = new PackagesFileStorageOptions();
            var packageFileStorageService = new PackageFileStorageService(storageOptions, It.IsAny <IMapper>());

            // act + assert
            Assert.Throws <DirectoryNotFoundException>(() =>
                                                       packageFileStorageService.Read());
        }