Esempio n. 1
0
        private void ChooseFile()
        {
            string path = _chooseResource.ResourceIdentifier;

            if (_services.SetBookName(path))
            {
                _readingSession.SetNewBook(_services.Book, _services.History);
            }
        }
Esempio n. 2
0
        public void NewBookTest()
        {
            IReadingSession rs = CreateReadingSession();

            Assert.AreEqual("Title", rs.Title);

            rs.SetNewBook(new Book("Another"), new History());

            Assert.AreEqual("Another", rs.Title);
        }