Ejemplo n.º 1
0
 public PolygonHttpClient(IOptions <PolygonConfiguration> options, IPolygonAuth auth,
                          HttpClient httpClient)
 {
     _configuration = options.Value;
     _auth          = auth;
     _httpClient    = httpClient;
 }
Ejemplo n.º 2
0
 public void NoArgsConstructorWorks()
 {
     _polygonAuth = new PolygonAuth();
     Assert.NotNull(_polygonAuth);
 }
Ejemplo n.º 3
0
 public void BeforeEach()
 {
     _randomUtils = new Mock <IPolygonRandomUtils>(MockBehavior.Strict);
     _cryptoUtils = new Mock <IPolygonCryptoUtils>(MockBehavior.Strict);
     _polygonAuth = new PolygonAuth(_randomUtils.Object, _cryptoUtils.Object);
 }
Ejemplo n.º 4
0
 public PolygonHttpClient(IOptions <PolygonConfiguration> options, IPolygonAuth auth)
 {
     _configuration = options.Value;
     _auth          = auth;
     _httpClient    = DefaultHttpClient(_configuration.ApiBaseUrl);
 }