aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.UnitTesting/DataStore
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2020-10-21 04:16:00 +0300
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2020-10-21 04:16:00 +0300
commit7956c30b196eb5d0d322c08bd5125eaae30f69e5 (patch)
treeb2db8384ecf7be60f373c62a1bdaef554e5be949 /Software/Visual_Studio/Tango.UnitTesting/DataStore
parente8cec64cf5c35b17fed6a1f8f4ea0665d4ddf39b (diff)
downloadTango-7956c30b196eb5d0d322c08bd5125eaae30f69e5.tar.gz
Tango-7956c30b196eb5d0d322c08bd5125eaae30f69e5.zip
More EF DataStore.
Diffstat (limited to 'Software/Visual_Studio/Tango.UnitTesting/DataStore')
-rw-r--r--Software/Visual_Studio/Tango.UnitTesting/DataStore/DataStore_TST.cs15
1 files changed, 13 insertions, 2 deletions
diff --git a/Software/Visual_Studio/Tango.UnitTesting/DataStore/DataStore_TST.cs b/Software/Visual_Studio/Tango.UnitTesting/DataStore/DataStore_TST.cs
index 4a7d55e1e..1428aa210 100644
--- a/Software/Visual_Studio/Tango.UnitTesting/DataStore/DataStore_TST.cs
+++ b/Software/Visual_Studio/Tango.UnitTesting/DataStore/DataStore_TST.cs
@@ -10,6 +10,7 @@ using Tango.PMR.Embroidery;
using Tango.DataStore;
using Tango.DataStore.Lite;
using Tango.Core.IO;
+using Tango.DataStore.EF;
namespace Tango.UnitTesting.DataStore
{
@@ -21,7 +22,18 @@ namespace Tango.UnitTesting.DataStore
public void LiteDB_DataStore_Working()
{
var tempFile = TemporaryManager.Default.CreateImaginaryFile();
- IDataStoreManager manager = new LiteDBDataStoreManager(tempFile);
+ Run_Test(new LiteDBDataStoreManager(tempFile));
+ tempFile.Delete();
+ }
+
+ [TestMethod]
+ public void EF_DataStore_Working()
+ {
+ Run_Test(new EFDataStoreManager());
+ }
+
+ private void Run_Test(IDataStoreManager manager)
+ {
IDataStoreCollection collection = manager.GetCollection("TEST");
{
@@ -76,7 +88,6 @@ namespace Tango.UnitTesting.DataStore
Assert.IsTrue(collection.Count() == 0);
manager.Dispose();
- tempFile.Delete();
}
}
}