public void Should_convert_from_core_unacknowledged_result_when_original_models_exists()
        {
            var core = new BulkWriteOperationResult.Unacknowledged(
                requestCount: 1,
                processedRequests: new[] { new InsertRequest(new BsonDocument("b", 1)) });

            var models = new[] 
            {
                new InsertOneModel<BsonDocument>(new BsonDocument("a", 1))
            };
            var mapped = BulkWriteResult<BsonDocument>.FromCore(core, models);

            mapped.ProcessedRequests[0].Should().BeSameAs(models[0]);
            mapped.IsAcknowledged.Should().BeFalse();
            mapped.RequestCount.Should().Be(core.RequestCount);
        }
        public void Should_convert_from_core_unacknowledged_result_when_original_models_does_not_exist()
        {
            var core = new BulkWriteOperationResult.Unacknowledged(
                requestCount: 1,
                processedRequests: new[] { new InsertRequest(new BsonDocumentWrapper(new BsonDocument("b", 1))) });

            var mapped = BulkWriteResult<BsonDocument>.FromCore(core);

            mapped.ProcessedRequests[0].Should().BeOfType<InsertOneModel<BsonDocument>>();
            ((InsertOneModel<BsonDocument>)mapped.ProcessedRequests[0]).Document.Should().Be("{b:1}");
            mapped.IsAcknowledged.Should().BeFalse();
            mapped.RequestCount.Should().Be(core.RequestCount);
        }