public void StartFrom_UsesContentReferenceId() { var contentLink = new ContentReference(42); var instance = _serviceStub.StartFrom(contentLink); Assert.Equal(42, instance.RootId); }
public void StartFrom_BeforeSearch_SetsCorrectRootId(int root) { IElasticSearchService <ComplexType> result = _service.StartFrom(root).Search <ComplexType>(""); Assert.Equal(root, result.RootId); }