public void ChangeFeedIteratorCore_FeedRange() { FeedRangeInternal feedToken = Mock.Of <FeedRangeInternal>(); ChangeFeedIteratorCore changeFeedIteratorCore = ChangeFeedIteratorCore.Create(Mock.Of <ContainerInternal>(), feedToken, null, null); Assert.AreEqual(feedToken, changeFeedIteratorCore.FeedRangeInternal); }
public void ChangeFeedIteratorCore_ValidateOptions(int maxItemCount) { ChangeFeedIteratorCore.Create(Mock.Of <ContainerInternal>(), null, null, new ChangeFeedRequestOptions() { MaxItemCount = maxItemCount }); }
public void ChangeFeedIteratorCore_HasMoreResultsDefault() { ChangeFeedIteratorCore changeFeedIteratorCore = ChangeFeedIteratorCore.Create(Mock.Of <ContainerInternal>(), null, null, null); Assert.IsTrue(changeFeedIteratorCore.HasMoreResults); }
public void ChangeFeedIteratorCore_Null_Container() { ChangeFeedIteratorCore.Create(null, null, null, new ChangeFeedRequestOptions()); }