Ejemplo n.º 1
0
        public void Withdraw_ShouldUnauthorizedThrowException_IfNoApiKeyIsGiven()
        {
            var         bittrex = new Bittrex();
            Func <Task> action  = async() => { var _ = await bittrex.Withdraw(DefaultCurrency, 0, DefaultTargetAddress); };

            action.ShouldThrow <UnauthorizedException>();
        }
Ejemplo n.º 2
0
        public void Withdraw_ShouldNotThrowException()
        {
            var         bittrex = new Bittrex(DefaultApiKey, DefaultApiSecret);
            Func <Task> action  = async() => { var _ = await bittrex.Withdraw(DefaultCurrency, 0, DefaultTargetAddress); };

            action.ShouldNotThrow();
        }