예제 #1
0
        public InvoiceRun CreateInvoiceRun()
        {
            var compenentAuthority = model.CompetentAuthorities.First();

            var ibisFileData = new IbisFileData
            {
                Id                  = IntegerToGuid(GetNextId()),
                FileId              = GetNextId(),
                CustomerFileData    = "Customer file data",
                CustomerFileName    = "Customer file name",
                TransactionFileData = "Transaction file data",
                TransactionFileName = "Transaction file name"
            };

            var user = GetOrCreateUser("Invoice Run User");

            var invoiceRun = new InvoiceRun
            {
                Id                   = IntegerToGuid(GetNextId()),
                IssuedDate           = DateTime.UtcNow,
                IssuedByUserId       = user.Id,
                CompetentAuthority   = compenentAuthority,
                CompetentAuthorityId = compenentAuthority.Id,
                IbisFileData         = ibisFileData,
                IbisFileDataId       = ibisFileData.Id
            };

            model.InvoiceRuns.Add(invoiceRun);

            return(invoiceRun);
        }
예제 #2
0
        public InvoiceRun CreateInvoiceRun()
        {
            var compenentAuthority = model.CompetentAuthorities.First();

            var ibisFileData = new IbisFileData
            {
                Id = IntegerToGuid(GetNextId()),
                FileId = GetNextId(),
                CustomerFileData = "Customer file data",
                CustomerFileName = "Customer file name",
                TransactionFileData = "Transaction file data",
                TransactionFileName = "Transaction file name"
            };

            var user = GetOrCreateUser("Invoice Run User");

            var invoiceRun = new InvoiceRun
            {
                Id = IntegerToGuid(GetNextId()),
                IssuedDate = DateTime.UtcNow,
                IssuedByUserId = user.Id,
                CompetentAuthority = compenentAuthority,
                CompetentAuthorityId = compenentAuthority.Id,
                IbisFileData = ibisFileData,
                IbisFileDataId = ibisFileData.Id
            };

            model.InvoiceRuns.Add(invoiceRun);

            return invoiceRun;
        }