public SnapEmbeddedResourcesTests(BaseFixture baseFixture) { _coreRunLibMock = new Mock <ICoreRunLib>(); _baseFixture = baseFixture; _snapCryptoProvider = new SnapCryptoProvider(); _snapFilesystem = new SnapFilesystem(); _snapEmbeddedResources = new SnapEmbeddedResources(); }
public SnapInstaller(ISnapExtractor snapExtractor, [NotNull] ISnapPack snapPack, [NotNull] ISnapOs snapOs, [NotNull] ISnapEmbeddedResources snapEmbeddedResources, [NotNull] ISnapAppWriter snapAppWriter) { _snapExtractor = snapExtractor ?? throw new ArgumentNullException(nameof(snapExtractor)); _snapPack = snapPack ?? throw new ArgumentNullException(nameof(snapPack)); _snapOs = snapOs ?? throw new ArgumentNullException(nameof(snapOs)); _snapEmbeddedResources = snapEmbeddedResources ?? throw new ArgumentNullException(nameof(snapEmbeddedResources)); _snapAppWriter = snapAppWriter ?? throw new ArgumentNullException(nameof(snapAppWriter)); }
public NugetServiceV3Tests(BaseFixture baseFixture) { _baseFixture = baseFixture; _coreRunLibMock = new Mock <ICoreRunLib>(); _snapEmbeddedResources = new SnapEmbeddedResources(); _snapCryptoProvider = new SnapCryptoProvider(); _snapFilesystem = new SnapFilesystem(); _nugetService = new NugetService(_snapFilesystem, new NugetLogger(new LogProvider.NoOpLogger())); _snapPack = new SnapPack(_snapFilesystem, new SnapAppReader(), new SnapAppWriter(), _snapCryptoProvider, new SnapEmbeddedResources()); }
public SnapCryptoProviderTests(BaseFixturePackaging baseFixture) { _baseFixture = baseFixture; _snapCryptoProvider = new SnapCryptoProvider(); _snapOs = SnapOs.AnyOs; _snapAppReader = new SnapAppReader(); _snapAppWriter = new SnapAppWriter(); _snapEmbeddedResources = new SnapEmbeddedResources(); _snapPack = new SnapPack(_snapOs.Filesystem, _snapAppReader, _snapAppWriter, _snapCryptoProvider, _snapEmbeddedResources); _coreRunLibMock = new Mock <ICoreRunLib>(); _snapReleaseBuilderContext = new SnapReleaseBuilderContext(_coreRunLibMock.Object, _snapOs.Filesystem, _snapCryptoProvider, _snapEmbeddedResources, _snapPack); }
public SnapUpdateManagerTests(BaseFixture baseFixture, BaseFixturePackaging baseFixturePackaging, BaseFixtureNuget baseFixtureNuget) { _baseFixture = baseFixture; _baseFixturePackaging = baseFixturePackaging; _baseFixtureNuget = baseFixtureNuget; _coreRunLibMock = new Mock <ICoreRunLib>(); _nugetServiceMock = new Mock <INugetService>(); _snapHttpClientMock = new Mock <ISnapHttpClient>(); _snapCryptoProvider = new SnapCryptoProvider(); _snapEmbeddedResources = new SnapEmbeddedResources(); _snapOs = SnapOs.AnyOs; _snapAppWriter = new SnapAppWriter(); _snapPack = new SnapPack(_snapOs.Filesystem, new SnapAppReader(), new SnapAppWriter(), _snapCryptoProvider, _snapEmbeddedResources); _snapExtractor = new SnapExtractor(_snapOs.Filesystem, _snapPack, _snapEmbeddedResources); _snapInstaller = new SnapInstaller(_snapExtractor, _snapPack, _snapOs, _snapEmbeddedResources, _snapAppWriter); _releaseBuilderContext = new SnapReleaseBuilderContext(_coreRunLibMock.Object, _snapOs.Filesystem, _snapCryptoProvider, _snapEmbeddedResources, _snapPack); }
public SnapInstallerTests(BaseFixturePackaging baseFixture) { _baseFixture = baseFixture; _snapOsMock = new Mock <ISnapOs>(); _coreRunLibMock = new Mock <ICoreRunLib>(); _snapCryptoProvider = new SnapCryptoProvider(); _snapAppReader = new SnapAppReader(); _snapAppWriter = new SnapAppWriter(); _snapEmbeddedResources = new SnapEmbeddedResources(); _snapFilesystem = new SnapFilesystem(); _snapOsProcessManager = new SnapOsProcessManager(); _snapPack = new SnapPack(_snapFilesystem, _snapAppReader, _snapAppWriter, _snapCryptoProvider, _snapEmbeddedResources); var snapExtractor = new SnapExtractor(_snapFilesystem, _snapPack, _snapEmbeddedResources); _snapInstaller = new SnapInstaller(snapExtractor, _snapPack, _snapOsMock.Object, _snapEmbeddedResources, _snapAppWriter); _snapReleaseBuilderContext = new SnapReleaseBuilderContext(_coreRunLibMock.Object, _snapFilesystem, _snapCryptoProvider, _snapEmbeddedResources, _snapPack); }
public SnapPackageManagerRestoreStrategyInstallOrUpdateTests(BaseFixturePackaging baseFixturePackaging, BaseFixtureNuget baseFixtureNuget) { _nugetServiceMock = new Mock <INugetService>(); _coreRunLibMock = new Mock <ICoreRunLib>(); _snapHttpClientMock = new Mock <ISnapHttpClient>(); _baseFixturePackaging = baseFixturePackaging; _baseFixtureNuget = baseFixtureNuget; _snapFilesystem = new SnapFilesystem(); _snapCryptoProvider = new SnapCryptoProvider(); _snapAppWriter = new SnapAppWriter(); _snapAppReader = new SnapAppReader(); _snapEmbeddedResources = new SnapEmbeddedResources(); _snapPack = new SnapPack(_snapFilesystem, _snapAppReader, _snapAppWriter, _snapCryptoProvider, _snapEmbeddedResources); _snapExtractor = new SnapExtractor(_snapFilesystem, _snapPack, _snapEmbeddedResources); _snapPackageManager = new SnapPackageManager(_snapFilesystem, new SnapOsSpecialFoldersUnix(), _nugetServiceMock.Object, _snapHttpClientMock.Object, _snapCryptoProvider, _snapExtractor, _snapAppReader, _snapPack); _releaseBuilderContext = new SnapReleaseBuilderContext(_coreRunLibMock.Object, _snapFilesystem, _snapCryptoProvider, _snapEmbeddedResources, _snapPack); }
public SnapUpdateManagerTests(BaseFixture baseFixture, BaseFixturePackaging baseFixturePackaging, BaseFixtureNuget baseFixtureNuget, ITestOutputHelper testOutputHelper) { _baseFixture = baseFixture; _baseFixturePackaging = baseFixturePackaging; _baseFixtureNuget = baseFixtureNuget; _testOutputHelper = testOutputHelper; _coreRunLibMock = new Mock <ICoreRunLib>(); _nugetServiceMock = new Mock <INugetService>(); _snapHttpClientMock = new Mock <ISnapHttpClient>(); _snapCryptoProvider = new SnapCryptoProvider(); _snapEmbeddedResources = new SnapEmbeddedResources(); _snapFilesystem = new SnapFilesystem(); _snapAppWriter = new SnapAppWriter(); _snapPack = new SnapPack(_snapFilesystem, new SnapAppReader(), new SnapAppWriter(), _snapCryptoProvider, _snapEmbeddedResources, new SnapBinaryPatcher()); _snapOs = new SnapOs(_snapFilesystem, new SnapOsProcessManager(), _baseFixturePackaging.WorkingDirectory, true); _snapExtractor = new SnapExtractor(_snapFilesystem, _snapPack, _snapEmbeddedResources); _snapInstaller = new SnapInstaller(_snapExtractor, _snapPack, _snapOs, _snapEmbeddedResources, _snapAppWriter); _releaseBuilderContext = new SnapReleaseBuilderContext(_coreRunLibMock.Object, _snapFilesystem, _snapCryptoProvider, _snapEmbeddedResources, _snapPack); }
public SnapExtractor(ISnapFilesystem snapFilesystem, [NotNull] ISnapPack snapPack, [NotNull] ISnapEmbeddedResources snapEmbeddedResources) { _snapFilesystem = snapFilesystem ?? throw new ArgumentNullException(nameof(snapFilesystem)); _snapPack = snapPack ?? throw new ArgumentNullException(nameof(snapPack)); _snapEmbeddedResources = snapEmbeddedResources ?? throw new ArgumentNullException(nameof(snapEmbeddedResources)); }
public SnapReleaseBuilderContext([NotNull] ICoreRunLib coreRunLib, [NotNull] ISnapFilesystem snapFilesystem, [NotNull] ISnapCryptoProvider snapCryptoProvider, [NotNull] ISnapEmbeddedResources snapEmbeddedResources, [NotNull] ISnapPack snapPack) { CoreRunLib = coreRunLib ?? throw new ArgumentNullException(nameof(coreRunLib)); SnapFilesystem = snapFilesystem ?? throw new ArgumentNullException(nameof(snapFilesystem)); SnapCryptoProvider = snapCryptoProvider ?? throw new ArgumentNullException(nameof(snapCryptoProvider)); SnapEmbeddedResources = snapEmbeddedResources ?? throw new ArgumentNullException(nameof(snapEmbeddedResources)); SnapPack = snapPack ?? throw new ArgumentNullException(nameof(snapPack)); }