private MoneyCollection(Currency currency) { Verifiers.ArgNullVerify(currency, nameof(currency)); Notes = Notes.Create(currency); Coins = Coins.Create(currency); Currency = currency; }
public RePayments([NotNull] ILoan loan) { Verifiers.ArgNullVerify(loan, nameof(loan)); _loan = loan; _rePayments = new IRePayment[_loan.TotalPaymentsCount]; Calculate(); }
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; }
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; }
public AlbumRepository(PhotosDbContext photosContext) { Verifiers.ArgNullVerify(photosContext, nameof(photosContext)); _context = photosContext; }
public PhotoImageFinder(string rootDirectory) { Verifiers.ArgNullVerify(rootDirectory, nameof(rootDirectory)); _rootDirectory = rootDirectory; }
public DiskViewModelCollection(IDiskCollection diskCollection) { Verifiers.ArgNullVerify(diskCollection, nameof(diskCollection)); _diskViewModels = diskCollection?.Select(disk => new DiskViewModel(disk, _selectedVolumeObserver)).ToArray() ?? new DiskViewModel[0]; }