public void CreateNewBook(int firstPage, int lastPage, int countListNotebook, string newPath) { CalculatePages calculatePages = new CalculatePages(); List<Notebook> listNotebooks = calculatePages.Calculate(firstPage, lastPage, countListNotebook); calculatePages.UnionLastNotebooks(listNotebooks, 4); calculatePages.ReverseBackSide(listNotebooks); Book book = new Book(firstPage, lastPage, countListNotebook); book.Path = newPath; book.Notebooks = listNotebooks; ListBooks.Add(book); }
public void SetUp() { Calculate = new CalculatePages(); Book = new Book(); }