Mock codec
This commit is contained in:
parent
0b0d074cf6
commit
4412cba9f6
1 changed files with 7 additions and 2 deletions
|
@ -2,10 +2,15 @@
|
|||
|
||||
public class Codec : ICodec {
|
||||
public Document Decode(byte[] data) {
|
||||
return new(new (), new byte[0]);
|
||||
return new(
|
||||
new () {
|
||||
{ "content-name", "text.txt" }
|
||||
},
|
||||
data
|
||||
);
|
||||
}
|
||||
|
||||
public byte[] Encode(Document document) {
|
||||
return new byte[0];
|
||||
return document.Data;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue