public void CreateTarget_Document()
        {
            var client   = new FakeFirestoreClient();
            var db       = FirestoreDb.Create("project", "db", client);
            var doc      = db.Document("col/doc");
            var expected = new Target
            {
                TargetId  = WatchStream.WatchTargetId,
                Documents = new DocumentsTarget {
                    Documents = { doc.Path }
                }
            };
            var actual = WatchStream.CreateTarget(doc);

            Assert.Equal(expected, actual);
        }
        public void CreateTarget_Query()
        {
            var client   = new FakeFirestoreClient();
            var db       = FirestoreDb.Create("project", "db", client);
            var query    = db.Collection("col").Limit(10);
            var expected = new Target
            {
                TargetId = WatchStream.WatchTargetId,
                Query    = new QueryTarget
                {
                    Parent          = db.DocumentsPath,
                    StructuredQuery = new StructuredQuery
                    {
                        From = { new CollectionSelector {
                                     CollectionId = "col"
                                 } },
                        Limit = 10
                    }
                }
            };
            var actual = WatchStream.CreateTarget(query);

            Assert.Equal(expected, actual);
        }