using System;
using System.IO;
using System.Threading.Tasks;
using DineroPortableClientSDK;

namespace DineroSampleApp
{
    public class FileUploadDemo
    {
        public static async Task UploadSampleImage(Dinero dinero)
        {
            var currentdir = Directory.GetCurrentDirectory();
            var fileName = "sample-invoice.jpg";
            var result = await dinero.FileUpload.AddImageAsync(fileName, File.OpenRead(fileName));
            Console.WriteLine("Image uploaded. FileGuid: " + result.FileGuid);
        }
    }
}