public void RESTAPIProfileResponseCastingNoErrorsTest()
        {
            GetProfileResponse response = setupTestObject(null);

            RESTAPIProfileResponse r = new RESTAPIProfileResponse(response);

            Assert.AreEqual(r.FirstName, FirstName);
            Assert.AreEqual(r.LastName, LastName);
            Assert.AreEqual(r.Email, Email);
            Assert.AreEqual(r.City, City);
            Assert.AreEqual(r.EmailOffers, EmailConsent.Item2);
            Assert.AreEqual(r.PrimaryUse, PrimaryUse);
            Assert.AreEqual(r.Country, Country);
            Assert.AreEqual(r.Language, Language);
            Assert.AreEqual(r.ErrorList.Count, 0);
            Assert.AreEqual(r.Company, Company);
        }
        public void RESTAPIProfileResponseCastingErrorsExistTest()
        {
            Fault fault = new Fault("o", "e", "m");
            GetProfileResponse response = setupTestObject(fault);

            RESTAPIProfileResponse r = new RESTAPIProfileResponse(response);

            Assert.AreEqual(r.FirstName, null);
            Assert.AreEqual(r.LastName, null);
            Assert.AreEqual(r.Email, null);
            Assert.AreEqual(r.City, null);
            Assert.AreEqual(r.EmailOffers, false);
            Assert.AreEqual(r.PrimaryUse, null);
            Assert.AreEqual(r.Country, null);
            Assert.AreEqual(r.Language, null);
            Assert.AreEqual(r.ErrorList.First(), fault);
            Assert.AreEqual(r.Company, null);
        }