Example #1
0
 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);
			}
		}
Example #4
0
        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);
                }
        }