public void Setup() { _restClient = new RestClient(); _restClient.BaseUrl = new Uri("https://libraryjuly.azurewebsites.net/"); _author = AuthorFactory.CreateAuthorWithId(); _book = BookFactory.CreateBook(); }
public void SetUp() { _restClient = new RestClient(); _restClient.BaseUrl = new Uri("https://libraryjuly.azurewebsites.net"); _author = AuthorFactory.CreateAuthorWithId(); _book = BookFactory.CreateBook(); _postNewAuthor = PostNewAuthor(_author, _restClient); _postedAuthor = Author.FromJson(_postNewAuthor.Content); _postNewBook = PostBookForAuthor(_postedAuthor, _book, _restClient); _postedBook = Book.FromJson(_postNewBook.Content); }