private CdcTableTypeModel CreateLinkTableWithColumns(decimal linkId, decimal leftId, decimal rightId, string transactionLsn, string sequenceLsn, CdcOperationType operationType = CdcOperationType.PreUpdate) { var entity = _fixture .Build <CdcEntityModel>() .With(data => data.Columns, _fixture.CreateMany <KeyValuePair <string, decimal> >().ToDictionary(kvp => kvp.Key, kvp => (object)kvp.Value)) .Create(); entity.Columns.Add(ItemToItemColumnName.LinkId, linkId); entity.Columns.Add(ItemToItemColumnName.LItemId, leftId); entity.Columns.Add(ItemToItemColumnName.RItemId, rightId); return(_fixture .Build <CdcTableTypeModel>() .With(cdc => cdc.Entity, entity) .With(cdc => cdc.Action, operationType) .With(cdc => cdc.TransactionLsn, transactionLsn) .With(cdc => cdc.SequenceLsn, sequenceLsn) .Create()); }
private CdcTableTypeModel CreateCdcTable(string transactionLsn, string sequenceLsn, CdcOperationType operationType = CdcOperationType.PreUpdate) => CreateCdcTableWithColumns(_fixture.Create <decimal>(), transactionLsn, sequenceLsn, operationType);