@@ -11,12 +11,12 @@ import XCTest
1111import StarWarsAPI
1212
1313class GETTransformerTests : XCTestCase {
14-
14+ private let requestCreator = ApolloRequestCreator ( )
1515 private lazy var url = URL ( string: " http://localhost:8080/graphql " ) !
1616
1717 func testEncodingQueryWithSingleParameter( ) {
1818 let operation = HeroNameQuery ( episode: . empire)
19- let body = RequestCreator . requestBody ( for: operation)
19+ let body = requestCreator . requestBody ( for: operation)
2020
2121 let transformer = GraphQLGETTransformer ( body: body, url: self . url)
2222
@@ -27,7 +27,7 @@ class GETTransformerTests: XCTestCase {
2727
2828 func testEncodingQueryWithMoreThanOneParameterIncludingNonHashableValue( ) {
2929 let operation = HeroNameTypeSpecificConditionalInclusionQuery ( episode: . jedi, includeName: true )
30- let body = RequestCreator . requestBody ( for: operation)
30+ let body = requestCreator . requestBody ( for: operation)
3131
3232 let transformer = GraphQLGETTransformer ( body: body, url: self . url)
3333
@@ -90,7 +90,7 @@ class GETTransformerTests: XCTestCase {
9090
9191 func testEncodingQueryWithNullDefaultParameter( ) {
9292 let operation = HeroNameQuery ( )
93- let body = RequestCreator . requestBody ( for: operation)
93+ let body = requestCreator . requestBody ( for: operation)
9494
9595 let transformer = GraphQLGETTransformer ( body: body, url: self . url)
9696
0 commit comments