public void GivenANewBookModelIsCreated(int id, string author, string title, string description) { bookModel = BookObjectFactory.GetBook(); bookModel.Id = id; bookModel.Author = author; bookModel.Title = title; bookModel.Description = description; }
public void WhenTheBookIsUpdated(int id, string author, string title, string description) { bookModel = BookObjectFactory.GetBook(); bookModel.Id = id; bookModel.Author = author; bookModel.Title = title; bookModel.Description = description; BaseHook.result = BaseHook.bookClient.UpdateBook(id, bookModel); }