aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.UnitTesting
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2019-05-21 08:37:45 +0300
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2019-05-21 08:37:45 +0300
commit8b650b590224b4c922aab831307c7bcb29fa9fdc (patch)
treed024fe54a40afe638a3a530014198cc79d277d51 /Software/Visual_Studio/Tango.UnitTesting
parent3e64075a702ef7564e30e8ae12052c213dc274eb (diff)
downloadTango-8b650b590224b4c922aab831307c7bcb29fa9fdc.tar.gz
Tango-8b650b590224b4c922aab831307c7bcb29fa9fdc.zip
Fixed issue with PPC update TEMP_USER not having VIEW_DEFINITION permissions.
Diffstat (limited to 'Software/Visual_Studio/Tango.UnitTesting')
-rw-r--r--Software/Visual_Studio/Tango.UnitTesting/SMO/SMO_TST.cs22
-rw-r--r--Software/Visual_Studio/Tango.UnitTesting/Tango.UnitTesting.csproj3
2 files changed, 24 insertions, 1 deletions
diff --git a/Software/Visual_Studio/Tango.UnitTesting/SMO/SMO_TST.cs b/Software/Visual_Studio/Tango.UnitTesting/SMO/SMO_TST.cs
new file mode 100644
index 000000000..f258c4e17
--- /dev/null
+++ b/Software/Visual_Studio/Tango.UnitTesting/SMO/SMO_TST.cs
@@ -0,0 +1,22 @@
+using Microsoft.VisualStudio.TestTools.UnitTesting;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using Tango.Web.SMO;
+
+namespace Tango.UnitTesting.SMO
+{
+ [TestClass]
+ [TestCategory("SMO")]
+ public class SMO_TST
+ {
+ [TestMethod]
+ public void Create_Temp_User_And_Grant_Read_And_View_Defaults()
+ {
+ SmoManager smo = new SmoManager();
+ var user = smo.CreateRandomLoginAndUser();
+ }
+ }
+}
diff --git a/Software/Visual_Studio/Tango.UnitTesting/Tango.UnitTesting.csproj b/Software/Visual_Studio/Tango.UnitTesting/Tango.UnitTesting.csproj
index c7a2cc451..28144e010 100644
--- a/Software/Visual_Studio/Tango.UnitTesting/Tango.UnitTesting.csproj
+++ b/Software/Visual_Studio/Tango.UnitTesting/Tango.UnitTesting.csproj
@@ -144,6 +144,7 @@
<Compile Include="Pulse\Pulse_TST.cs" />
<Compile Include="RemoteRunner_TST.cs" />
<Compile Include="SendGrid\SendGrid_TST.cs" />
+ <Compile Include="SMO\SMO_TST.cs" />
<Compile Include="SQLExaminer\SQLExaminer_TST.cs" />
<Compile Include="Core\TemporaryManager_TST.cs" />
<Compile Include="TCC\TCC_TST.cs" />
@@ -307,7 +308,7 @@
<Import Project="..\packages\System.Data.SQLite.Core.1.0.108.0\build\net46\System.Data.SQLite.Core.targets" Condition="Exists('..\packages\System.Data.SQLite.Core.1.0.108.0\build\net46\System.Data.SQLite.Core.targets')" />
<ProjectExtensions>
<VisualStudio>
- <UserProperties BuildVersion_StartDate="2000/1/1" BuildVersion_UseGlobalSettings="False" BuildVersion_BuildVersioningStyle="None.None.Increment.TimeStamp" BuildVersion_UpdateAssemblyVersion="True" BuildVersion_AssemblyInfoFilename="Properties\AssemblyInfo.cs" />
+ <UserProperties BuildVersion_AssemblyInfoFilename="Properties\AssemblyInfo.cs" BuildVersion_UpdateAssemblyVersion="True" BuildVersion_BuildVersioningStyle="None.None.Increment.TimeStamp" BuildVersion_UseGlobalSettings="False" BuildVersion_StartDate="2000/1/1" />
</VisualStudio>
</ProjectExtensions>
</Project> \ No newline at end of file