Esempio n. 1
0
        public void get_eth_usd_price_should_return_amount()
        {
            const decimal price     = 187;
            const ulong   updatedAt = 123456789;

            _priceService.Get("USDT_ETH").Returns(new PriceInfo(price, updatedAt));
            var result = _rpc.ndm_getUsdPrice("USDT_ETH");

            result.Data.Price.Should().Be(price);
            result.Data.UpdatedAt.Should().Be(updatedAt);
        }