Пример #1
0
 public void BadRequestShouldFail()
 {
     var adapter = new DefaultAdapter(Url);
     var resp = adapter.GetProfile("*****@*****.**", "Test123!");
     Assert.That(resp, Is.Not.Null);
     Assert.That(resp.Error, Is.Not.Empty);
 }
Пример #2
0
        public void GetProfoleShouldSucceed()
        {
            var adapter = new DefaultAdapter(Url);
            var resp = adapter.GetProfile("*****@*****.**", "Test123!");
            Assert.That(resp, Is.Not.Null);

            var profile = resp.Profile;
            Assert.That(profile.Account, Is.EqualTo("test1"));
            Assert.That(profile.Company, Is.EqualTo("abc"));
        }