Exemple #1
0
        public InstallationRecorderTests()
        {
            _packageHistoryRepository    = new Mock <IPackageHistoryRepository>();
            _packageInstallationSettings = new PackageInstallationSettings();

            _recorder = new InstallationRecorder(_packageHistoryRepository.Object, _packageInstallationSettings);
        }
        public InstallationRecorderTests()
        {
            _mockPackageHistoryRepository = new Mock <IPackageHistoryRepository>();

            _packageInstallationSettings = new PackageInstallationSettings
            {
                RecordInstallationHistory = true
            };

            _recorder = new InstallationRecorder(_mockPackageHistoryRepository.Object, _packageInstallationSettings);

            _dateInstalled = DateTime.Now;
        }
        protected HttpRequestAuthoriserTest()
        {
            CheckRequests = new Mock <ICheckRequests>();

            PackageInstallationSettings = new PackageInstallationSettings
            {
                IsEnabled = true
            };

            Logger = new Mock <ILog>();

            RequestAuthoriser = new Core.HttpRequestAuthoriser(CheckRequests.Object, PackageInstallationSettings, Logger.Object);
        }
Exemple #4
0
 public InstallationRecorder(IPackageHistoryRepository packageHistoryRepository, PackageInstallationSettings packageInstallationSettings)
 {
     _packageHistoryRepository    = packageHistoryRepository;
     _packageInstallationSettings = packageInstallationSettings;
 }
Exemple #5
0
 public HttpRequestAuthoriser(ICheckRequests checkRequests, PackageInstallationSettings packageInstallationSettings, ILog logger)
 {
     _checkRequests = checkRequests;
     _packageInstallationSettings = packageInstallationSettings;
     _logger = logger;
 }
 public PackageInstallationSettingsBuilder()
 {
     _packageInstallationSettings = new PackageInstallationSettings();
 }