コード例 #1
0
        public async Task GenerateSettlementLetterBlob()
        {
            SettlementProcessManager manager = new SettlementProcessManager();

            var url = await manager.GenerateSettlementLetter(new GenerateSettlementLetterParams()
            {
                IdentityWorkID = Guid.Parse("0c08daa6-f775-42a8-b75e-1b9b685b7977"),
                InstanceID     = Guid.Parse("f16952c9-3475-4d65-a603-a93cf1ccde48"),
                OverdraftIDs   = new List <Guid>()
                {
                    Guid.Parse("1457133d-5e13-4ae3-935d-c846dcd8518e")
                }
            });

            Assert.NotNull(url);
        }
コード例 #2
0
        public async Task GenerateSettlementLetterFileDisk()
        {
            SettlementProcessManager manager = new SettlementProcessManager();
            var  overdrafts     = GetOverDraft();
            Guid IdentityWorkID = Guid.Parse("0c08daa6-f775-42a8-b75e-1b9b685b7977");
            Guid InstanceID     = Guid.Parse("f16952c9-3475-4d65-a603-a93cf1ccde48");

            overdrafts.FirstOrDefault().Employee = new Employee()
            {
                Name = "Luis ", FirstLastName = "Tejeda"
            };


            var token = await LoginAsync("*****@*****.**", "LsyMR123.", "https://dev2authapicti.azurewebsites.net/api/Auth/LoginUser");

            var url = await manager.GenerateSettlementLetter(overdrafts, IdentityWorkID, InstanceID, token, new MSSpreadsheetWriterDisk());

            Assert.NotNull(url);
        }
コード例 #3
0
        public async Task <string> GenerateSettlementLetter(GenerateSettlementLetterParams parameters)
        {
            SettlementProcessManager mgr = new SettlementProcessManager();

            return(await mgr.GenerateSettlementLetter(parameters));
        }