Example #1
0
        public void ShouldBeAbleToReturnApiResultsAsXml()
        {
            var accessToken = TestHelper.SignInAndGetAccessToken();

            var proxy = new ContactsProxy(accessToken);

            proxy.ContentType = RequestContentType.ApplicationXml;
            ContactTests.AssertContactProxy(proxy);
        }
Example #2
0
        public void SetupTestData()
        {
            var proxy = new CompaniesProxy();

            ContactTests.AddBradPartner(proxy.WsAccessKey, proxy.FileId);
            ContactTests.AddCarlCustomer(proxy.WsAccessKey, proxy.FileId);
            ContactTests.AddJennySupplier(proxy.WsAccessKey, proxy.FileId);
            ContactTests.AddKathyContractor(proxy.WsAccessKey, proxy.FileId);
            ContactTests.AddBradPartner(proxy.WsAccessKey, proxy.FileId);
        }