Пример #1
0
 public void SetupBeforeEachTest()
 {
     this.neoApi = A.Fake <ISendRestCommandsToNeo>();
     A.CallTo(() => this.neoApi.SendCommandAsync(A <string> ._)).Returns(JsonConvert.DeserializeObject <NeoResponse>(Response));
     this.apiClientFactory = A.Fake <IApiClientFactory>();
     A.CallTo(() => this.apiClientFactory.GetApiClient()).Returns(this.neoApi);
     this.neoClient = new NeoClient(this.apiClientFactory);
 }
Пример #2
0
 public void SetupBeforeEachTest()
 {
     this.httpClientWrapper = new JsonHttpClientWrapper("neo4j", "longbow");
     this.neoClient         = this.graphStore.GetClient();
 }