aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.UnitTesting/DAL_TST.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/Tango.UnitTesting/DAL_TST.cs')
-rw-r--r--Software/Visual_Studio/Tango.UnitTesting/DAL_TST.cs26
1 files changed, 11 insertions, 15 deletions
diff --git a/Software/Visual_Studio/Tango.UnitTesting/DAL_TST.cs b/Software/Visual_Studio/Tango.UnitTesting/DAL_TST.cs
index 0ea7b59ef..02862350f 100644
--- a/Software/Visual_Studio/Tango.UnitTesting/DAL_TST.cs
+++ b/Software/Visual_Studio/Tango.UnitTesting/DAL_TST.cs
@@ -17,24 +17,20 @@ namespace Tango.UnitTesting
{
String guid = Guid.NewGuid().ToString();
- using (var db = new DAL.Remote.DB.RemoteDB(SettingsManager.Default.GetOrCreate<CoreSettings>().DataSource))
- {
- var action = new DAL.Remote.DB.ACTION_TYPES();
- action.CODE = 1;
- action.NAME = "Action 1";
- action.DESCRIPTION = "Description 1";
- action.GUID = guid;
- action.LAST_UPDATED = DateTime.UtcNow;
+ DataSource s = new DataSource();
+ s.Type = DataSourceType.SQLServer;
+ s.Address = "twine.database.windows.net";
+ s.Catalog = "Tango";
+ s.IntegratedSecurity = false;
+ s.UserName = "Roy";
+ s.Password = "Aa123456";
- db.ACTION_TYPES.Add(action);
- db.SaveChanges();
- }
- using (var db = new DAL.Remote.DB.RemoteDB(SettingsManager.Default.GetOrCreate<CoreSettings>().DataSource))
+ using (var db = new DAL.Remote.DB.RemoteDB(s))
{
- var action = db.ACTION_TYPES.Single(x => x.GUID == guid);
- db.ACTION_TYPES.Remove(action);
- db.SaveChanges();
+ var events = db.EVENT_TYPES.ToList();
+ var motors = db.HARDWARE_MOTOR_TYPES.ToList();
+ var monitors = db.TECH_MONITORS.ToList();
}
}