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

            Console.WriteLine(info);
            Console.ReadLine();
        }
        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);
        }