Skip to content

Commit 766dc06

Browse files
committed
added integration test for snapshots
1 parent f675c64 commit 766dc06

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

OrigoDB.Modules.Protobuf.Test/TodoModelTests.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
using System.Linq;
44
using Modules.ProtoBuf.Test.Domain;
55
using NUnit.Framework;
6+
using OrigoDB.Core;
7+
using OrigoDB.Core.Test;
8+
using OrigoDB.Modules.ProtoBuf;
69
using ProtoBuf;
710
using ProtoBuf.Meta;
811

@@ -112,5 +115,18 @@ private TodoModel BuildComplexModel()
112115
model.SetCategories(play, "Fun", "Health");
113116
return model;
114117
}
118+
119+
[Test]
120+
public void Full_stack_smoke_test()
121+
{
122+
var config = new EngineConfiguration().ForIsolatedTest();
123+
ProtoBufFormatter.ConfigureSnapshots<TodoModel>(config, null);
124+
Engine<TodoModel> engine = Engine.Create(BuildComplexModel(), config);
125+
engine.CreateSnapshot();
126+
engine.Close();
127+
engine = Engine.Load<TodoModel>(config);
128+
var model = (TodoModel) engine.GetModel();
129+
Dump(model);
130+
}
115131
}
116132
}

OrigoDB.ProtoBuf.nuspec

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,15 @@
1313
<projectUrl>https://github.com/devrexlabs/modules.protobufformatter</projectUrl>
1414
<licenseUrl>https://github.com/devrexlabs/origodb#license</licenseUrl>
1515
<requireLicenseAcceptance>false</requireLicenseAcceptance>
16-
<releaseNotes>https://github.com/devrexlabs/modules.protobufformatter</releaseNotes>
16+
<releaseNotes>https://github.com/devrexlabs/modules.protobufformatter/releases</releaseNotes>
1717
<tags>in-memory imdb nosql prevalence odbms database imc</tags>
1818
<dependencies>
1919
<dependency id="protobuf-net" version="2.0.0"/>
2020
<dependency id="origodb.core" version="0.13.0"/>
2121
</dependencies>
2222
</metadata>
2323
<files>
24-
<file src="build\OrigoDB.*.dll" target="lib\net40" />
25-
<file src="build\OrigoDB.*.pdb" target="lib\net40" />
26-
<file src="build\OrigoDB.*.XML" target="lib\net40" />
24+
<file src="build\OrigoDB.Modules.Protobuf.*" target="lib\net40" />
2725
<file src="OrigoDB.Modules.Protobuf\**\*.cs" target="src" />
2826
</files>
2927
</package>

0 commit comments

Comments
 (0)