public CompanyClientIntegrationTests()
        {
            _settingsApp = new GetAppSettings();
            _companyIdSP = _settingsApp.Configuration["Authentication:CompanyId"];

            var apiKey = _settingsApp.Configuration["Authentication:ApiKey"];

            _client = new CompanyClient(apiKey);

            _companyReturn = File.ReadAllText(@"..\..\..\..\UnitTests\FileToTest\companySP_example.json");
            _company       = GenerateObjectToTest.Company();
        }
Example #2
0
        public InvoiceClientIntegrationTests()
        {
            _settingsApp = new GetAppSettings();
            _companyIdSP = _settingsApp.Configuration["Authentication:CompanyId"];
            _invoiceId   = _settingsApp.Configuration["Authentication:InvoiceId"];
            _pathToSave  = _settingsApp.Configuration["Authentication:Path"];

            var apiKey = _settingsApp.Configuration["Authentication:ApiKey"];

            _client = new ServiceInvoiceClient(apiKey);

            _xmlToTest = File.ReadAllText(@"..\..\..\..\UnitTests\FileToTest\invoiceResource-Example.xml");

            _item = GenerateObjectToTest.Invoice();
        }