Exemplo n.º 1
0
        private MoneyCollection(Currency currency)
        {
            Verifiers.ArgNullVerify(currency, nameof(currency));

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

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

            Calculate();
        }
Exemplo n.º 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;
        }
Exemplo n.º 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;
        }
Exemplo n.º 5
0
 private WebClient(HttpClient httpClient)
 {
     Verifiers.ArgNullVerify(httpClient, nameof(httpClient));
     _httpClient = httpClient;
 }
Exemplo n.º 6
0
 public AlbumRepository(PhotosDbContext photosContext)
 {
     Verifiers.ArgNullVerify(photosContext, nameof(photosContext));
     _context = photosContext;
 }
Exemplo n.º 7
0
        public PhotoImageFinder(string rootDirectory)
        {
            Verifiers.ArgNullVerify(rootDirectory, nameof(rootDirectory));

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