public void ReadCollectionFromStorage(IBookDataStorage storage) { if(storage==null) throw new ArgumentNullException(nameof(storage)); if (string.IsNullOrEmpty(storage.StorageLocation)) throw new InvalidOperationException("StorageLocation can't be null or empty"); _books = storage.ReadListFromStorage(); }
public void ReadCollectionFromStorage(IBookDataStorage storage) { if (storage == null) { throw new ArgumentNullException(nameof(storage)); } _books = storage.ReadListFromStorage(); }
public void ReadCollectionFromStorage(IBookDataStorage storage) { if (storage == null) throw new ArgumentNullException(nameof(storage)); _books = storage.ReadListFromStorage(); }