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); }
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; }