Exemplo n.º 1
0
        //[TestMethod]
        public async Task Find()
        {
            var builder          = Builders <BsonDocument> .Filter;
            var collectionFilter = builder.Eq("CollectionId", "799ac8f9b9a845568ab77c3dc9a32f6b");

            var result = await MasterRepository.FindAsync(collectionFilter);

            var record = BsonSerializer.Deserialize <MasterGetViewModel>(result.ToJson());

            Console.WriteLine($"Output:{JToken.Parse(JsonConvert.SerializeObject(record)).ToString(Formatting.Indented)}");
        }