예제 #1
0
        public async Task GetInvoice()
        {
            UrenCSVReader reader         = new UrenCSVReader(Options.Create(applicationSettings));
            var           client         = new ZohoClient(Options.Create(applicationSettings));
            var           invoiceService = new ZohoInvoicesService(client, Options.Create(applicationSettings));

            var response = await invoiceService.GetInvoice("XXX");

            Assert.IsNotNull(response);
        }
예제 #2
0
        public async Task ShouldCreateInvoices()
        {
            UrenCSVReader reader         = new UrenCSVReader(Options.Create(applicationSettings));
            var           client         = new ZohoClient(Options.Create(applicationSettings));
            var           invoiceService = new ZohoInvoicesService(client, Options.Create(applicationSettings));

            var createInZoho = false;

            var outputs = await invoiceService.CreateInvoices(reader.ReadRecords(), createInZoho);

            Assert.IsNotNull(outputs);
        }