public void Setup()
        {
            _server = new FederationServer("https://api.stellar.org/federation", "stellar.org");

            _fakeHttpMessageHandler = new Mock <FakeHttpMessageHandler> {
                CallBase = true
            };
            _httpClient        = new HttpClient(_fakeHttpMessageHandler.Object);
            _server.HttpClient = _httpClient;

            _stellarHorizonservice = new StellarHorizonService("https://horizon-testnet.stellar.org/", _httpClient);
        }
Esempio n. 2
0
 public WalletService(IStellarHorizonService stellarHorizonService)
 {
     _stellarHorizonService = stellarHorizonService;
 }
Esempio n. 3
0
 public TransactionService(IStellarHorizonService stellarHorizonService)
 {
     _stellarHorizonService = stellarHorizonService;
 }