public void PropertyTableIdReturnsNullIfNoActiveReversalIndex() { using (var mediator = GenerateMediator()) using (var recordList = new TestReversalRecordList(Cache, mediator)) { Assert.Null(recordList.GetPropertyTableId(FieldName)); } }
public void PropertyTableIdReturnsNullIfNoActiveReversalIndex() { using (var mediator = GenerateMediator()) using(var recordList = new TestReversalRecordList(Cache, mediator)) { Assert.Null(recordList.GetPropertyTableId(FieldName)); } }
public void PropertyTableIdContainsWsId() { const string wsId = "en"; using(var mediator = GenerateMediator()) using(var recordList = new TestReversalRecordList(Cache, mediator)) { mediator.PropertyTable.SetProperty("ReversalIndexPublicationLayout", "publishReversal" + wsId); var propTableId = recordList.GetPropertyTableId(FieldName); StringAssert.Contains(FieldName, propTableId); StringAssert.Contains(wsId, propTableId); } }
public void PropertyTableIdContainsWsId() { const string wsId = "en"; using (var mediator = GenerateMediator()) using (var recordList = new TestReversalRecordList(Cache, mediator)) { mediator.PropertyTable.SetProperty("ReversalIndexPublicationLayout", "publishReversal" + wsId); var propTableId = recordList.GetPropertyTableId(FieldName); StringAssert.Contains(FieldName, propTableId); StringAssert.Contains(wsId, propTableId); } }