示例#1
0
        /// <summary>
        /// Initialize book's collection and storage for it
        /// </summary>
        /// <param name="filePath"></param>
        /// <param name="storage"></param>
        public BookListService(string filePath, IStorageController <Book> storage)
        {
            _logger = LogManager.GetCurrentClassLogger();

            Storage     = storage;
            ListOfBooks = Storage.GetItems() as List <Book> ?? new List <Book>();
        }
示例#2
0
 /// <summary>
 /// Initialize book's collection and storage for it
 /// </summary>
 /// <param name="filePath"></param>
 /// <param name="storage"></param>
 public BookListService(string filePath, IStorageController <Book> storage)
 {
     Storage     = storage;
     ListOfBooks = Storage.GetItems() as List <Book> ?? new List <Book>();
 }