示例#1
0
        private MoneyCollection(Currency currency)
        {
            Verifiers.ArgNullVerify(currency, nameof(currency));

            Notes    = Notes.Create(currency);
            Coins    = Coins.Create(currency);
            Currency = currency;
        }
示例#2
0
        public RePayments([NotNull] ILoan loan)
        {
            Verifiers.ArgNullVerify(loan, nameof(loan));

            _loan       = loan;
            _rePayments = new IRePayment[_loan.TotalPaymentsCount];

            Calculate();
        }
示例#3
0
        public AlbumCreator(IPhotosDbContext context, AlbumOverview photosOverview, PlaceRegister placeRegister, IEnumerable <IPhotoImage> photoImages)
        {
            Verifiers.ArgNullVerify(photosOverview, nameof(photosOverview));

            _context        = context;
            _photosOverview = photosOverview;
            _place          = placeRegister.Register(_photosOverview.Place, _photosOverview.City, _photosOverview.Country);
            _photoImages    = photoImages;
        }
示例#4
0
        public AlbumLoader(IPhotosDbContext context, PlaceRegister placeRegister, string rootDirectory)
        {
            Verifiers.ArgNullVerify(!rootDirectory.IsNullOrEmpty(), nameof(rootDirectory));
            Verifiers.Verify(Directory.Exists(rootDirectory), "Specified directory does not exist: {0}", rootDirectory);

            _context       = context;
            _placeRegister = placeRegister;
            _rootDirectory = rootDirectory;
        }
 private WebClient(HttpClient httpClient)
 {
     Verifiers.ArgNullVerify(httpClient, nameof(httpClient));
     _httpClient = httpClient;
 }
示例#6
0
 public AlbumRepository(PhotosDbContext photosContext)
 {
     Verifiers.ArgNullVerify(photosContext, nameof(photosContext));
     _context = photosContext;
 }
示例#7
0
        public PhotoImageFinder(string rootDirectory)
        {
            Verifiers.ArgNullVerify(rootDirectory, nameof(rootDirectory));

            _rootDirectory = rootDirectory;
        }
示例#8
0
 public DiskViewModelCollection(IDiskCollection diskCollection)
 {
     Verifiers.ArgNullVerify(diskCollection, nameof(diskCollection));
     _diskViewModels = diskCollection?.Select(disk => new DiskViewModel(disk, _selectedVolumeObserver)).ToArray()
                       ?? new DiskViewModel[0];
 }