Exemplo n.º 1
0
 public void Setup()
 {
     _restClient         = new RestClient();
     _restClient.BaseUrl = new Uri("https://libraryjuly.azurewebsites.net/");
     _author             = AuthorFactory.CreateAuthorWithId();
     _book = BookFactory.CreateBook();
 }
Exemplo n.º 2
0
        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);
        }