Example #1
0
        private static void GetUserInfo()
        {
            DtoUserInfo info = violinBtce.GetInfo();

            Console.WriteLine(info);
            Console.ReadLine();
        }
Example #2
0
        public void GetInfo(string key, string secret, bool keyAndSecretAreSpecified)
        {
            // Pre requirements
            SetKeyAndSecretSpecificationRequirement(key, secret, keyAndSecretAreSpecified);

            // Arrange
            ViolinBtce violinBtce = keyAndSecretAreSpecified ? new ViolinBtce(key, secret) : new ViolinBtce();

            // Act
            DtoUserInfo result = violinBtce.GetInfo();

            // Assert
            Assert.AreEqual(0, result.OpenOrders);
        }