public void AddLeadTest()
        {
            var amoClient = new AmoCrmClient();

            // ACT
            amoClient.Auth("*****@*****.**", "b526e7df7b1f22b34a3b8a1d3b7530f0");
            var contact = amoClient.AddLead("Test", "123");

            // ASSERT
            Assert.IsNotNull(contact);
        }
        public void AuthTest()
        {
            // ARRANGE
            var amoClient = new AmoCrmClient();

            // ACT
            var response = amoClient.Auth("*****@*****.**", "b526e7df7b1f22b34a3b8a1d3b7530f0");

            // ASSERT
            Assert.IsNotNull(response);
        }
        public void GetpipeLinesTest()
        {
            // ARRANGE
            var amoClient = new AmoCrmClient();

            // ACT
            amoClient.Auth("*****@*****.**", "b526e7df7b1f22b34a3b8a1d3b7530f0");
            var pipelines = amoClient.GetpipeLines();

            // ASSERT
            Assert.IsNotNull(pipelines);
        }
        public void GetCurrentAccountTest()
        {
            // ARRANGE
            var amoClient = new AmoCrmClient();

            // ACT
            amoClient.Auth("*****@*****.**", "b526e7df7b1f22b34a3b8a1d3b7530f0");
            var account = amoClient.GetCurrentAccount();

            // ASSERT
            Assert.IsNotNull(account);
        }
        public void GetContactByEmailTest()
        {
            // ARRANGE
            var amoClient = new AmoCrmClient();

            // ACT
            amoClient.Auth("*****@*****.**", "b526e7df7b1f22b34a3b8a1d3b7530f0");
            var contact = amoClient.GetContactByEmail("*****@*****.**");

            // ASSERT
            Assert.IsNotNull(contact);
        }