public void DoesNothing_WhenBookmarkIsWhitespaceOrNull_ForBookmarks(string bookmark)
        {
            var mockGc = new Mock <IRawGraphClient>();
            var list   = new List <string> {
                bookmark
            };
            var cfq = new CypherFluentQuery(mockGc.Object);

            cfq.WithBookmarks(list.ToArray());
            var query = cfq.Query;

            query.Bookmarks.Should().HaveCount(0);
        }
        public void SetsBookmarks_InQuery1()
        {
            const string bookmarkName1 = "Bookmark1";
            const string bookmarkName2 = "Bookmark2";
            var          mockGc        = new Mock <IRawGraphClient>();

            var cfq = new CypherFluentQuery(mockGc.Object);

            cfq.WithBookmarks(bookmarkName1, bookmarkName2);
            var query = cfq.Query;

            query.Bookmarks.Should().HaveCount(2);
            query.Bookmarks.Should().Contain(bookmarkName1);
            query.Bookmarks.Should().Contain(bookmarkName2);
        }
        public void SetsBookmarks_InQuery2()
        {
            const string bookmarkName1 = "Bookmark1";
            const string bookmarkName2 = "Bookmark2";
            var          list          = new List <string> {
                bookmarkName1, bookmarkName2
            };
            var mockGc = new Mock <IRawGraphClient>();

            var cfq = new CypherFluentQuery(mockGc.Object);

            cfq.WithBookmarks(list.ToArray());
            var query = cfq.Query;

            query.Bookmarks.Should().HaveCount(2);
            var bmarks = query.Bookmarks.SelectMany(b => b.Values).ToList();

            bmarks.Should().Contain(bookmarkName1);
            bmarks.Should().Contain(bookmarkName2);
        }