예제 #1
0
 public IssueManager(IIssueRepository issueRepository,
                     IGuidProxy guidProxy, IDateTimeProxy dateTimeProxy)
 {
     _issueRepository = issueRepository;
     _guidProxy       = guidProxy;
     _dateTimeProxy   = dateTimeProxy;
 }
예제 #2
0
        /// <exception cref="ArgumentNullException">
        /// <paramref name="serverImagesPath"/> or
        /// <paramref name="archiveDirectoryPath"/> or
        /// <paramref name="contextFactory"/> or
        /// <paramref name="dateTimeProxy"/> or
        /// <paramref name="activatorProxy"/> is <see langword="null" />.</exception>
        internal UpdateService(string serverImagesPath, string archiveDirectoryPath, IDbContextFactory <UpdateDbContext> contextFactory,
                               IDateTimeProxy dateTimeProxy, IActivatorProxy activatorProxy)
        {
            if (serverImagesPath == null)
            {
                throw new ArgumentNullException("serverImagesPath");
            }

            if (archiveDirectoryPath == null)
            {
                throw new ArgumentNullException("archiveDirectoryPath");
            }

            if (contextFactory == null)
            {
                throw new ArgumentNullException("contextFactory");
            }

            if (dateTimeProxy == null)
            {
                throw new ArgumentNullException("dateTimeProxy");
            }

            if (activatorProxy == null)
            {
                throw new ArgumentNullException("activatorProxy");
            }

            _serverImagesPath     = serverImagesPath;
            _archiveDirectoryPath = archiveDirectoryPath;
            _contextFactory       = contextFactory;
            _dateTimeProxy        = dateTimeProxy;
            _activatorProxy       = activatorProxy;
        }
예제 #3
0
      /// <exception cref="ArgumentNullException">
      /// <paramref name="serverImagesPath"/> or
      /// <paramref name="archiveDirectoryPath"/> or
      /// <paramref name="contextFactory"/> or
      /// <paramref name="dateTimeProxy"/> or
      /// <paramref name="activatorProxy"/> is <see langword="null" />.</exception>
      internal UpdateService(string serverImagesPath, string archiveDirectoryPath, IDbContextFactory<UpdateDbContext> contextFactory,
         IDateTimeProxy dateTimeProxy, IActivatorProxy activatorProxy)
      {
         if (serverImagesPath == null)
            throw new ArgumentNullException("serverImagesPath");

         if (archiveDirectoryPath == null)
            throw new ArgumentNullException("archiveDirectoryPath");

         if (contextFactory == null)
            throw new ArgumentNullException("contextFactory");

         if (dateTimeProxy == null)
            throw new ArgumentNullException("dateTimeProxy");

         if (activatorProxy == null)
            throw new ArgumentNullException("activatorProxy");

         _serverImagesPath = serverImagesPath;
         _archiveDirectoryPath = archiveDirectoryPath;
         _contextFactory = contextFactory;
         _dateTimeProxy = dateTimeProxy;
         _activatorProxy = activatorProxy;
      }
 public GetTransactionsReport(IAccountsRepo accountsRepo, ITransactionsRepo transactionsRepo, IDateTimeProxy dateTimeProxy)
 {
     _accountsRepo     = accountsRepo;
     _transactionsRepo = transactionsRepo;
     _dateTimeProxy    = dateTimeProxy;
 }
예제 #5
0
 public BarQueryHandler(IDateTimeProxy dateTime)
 {
     _dateTime = dateTime;
 }
예제 #6
0
 public MockTransactionsRepo(IDateTimeProxy dateTimeProxy)
 {
     _dateTimeProxy = dateTimeProxy;
 }