public Client(IConnection connection, ClientBootsraper bootstraper = null) { Ensure.That(connection, "connection").IsNotNull(); Connection = connection; bootstraper = bootstraper ?? new ClientBootsraper(); Serializer = bootstraper.SerializerFn(); Attachments = bootstraper.AttachmentsFn(Connection); Databases = bootstraper.DatabasesFn(Connection); Documents = bootstraper.DocumentsFn(Connection); Entities = bootstraper.EntitiesFn(Connection); Views = bootstraper.ViewsFn(Connection); }