From 7956c30b196eb5d0d322c08bd5125eaae30f69e5 Mon Sep 17 00:00:00 2001 From: Roy Ben Shabat Date: Wed, 21 Oct 2020 04:16:00 +0300 Subject: More EF DataStore. --- .../Tango.UnitTesting/DataStore/DataStore_TST.cs | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'Software/Visual_Studio/Tango.UnitTesting') 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(); } } } -- cgit v1.3.1