Sonar-Token in Jenkinsfile angepasst ExcludeFromCodeCoverage für Methode "GenerateVorgang"
This commit is contained in:
23
Hochbaustatistik.Testing/DatabaseOperationsTests.cs
Normal file
23
Hochbaustatistik.Testing/DatabaseOperationsTests.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using Xunit;
|
||||
using Hochbaustatistik.Business;
|
||||
using System.Collections.Generic;
|
||||
using Hochbaustatistik.Database;
|
||||
using System.Reflection;
|
||||
|
||||
namespace Hochbaustatistik.Testing
|
||||
{
|
||||
public class DatabaseOperationsTests
|
||||
{
|
||||
|
||||
[Fact (Skip ="Keine Datenbank-Verbindung m<>glich")]
|
||||
public void ConnectAndExecuteHochbauTest()
|
||||
{
|
||||
DatabaseOperations.conString = "Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=dborap04.stadtdo.de)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=bgvp.stadtdo.de)));user id=leser;password=leser;";
|
||||
var result = DatabaseOperations.ConnectAndExecuteHochbau(new Vorgang() { Aktenzeichen = "63/2-1-020989" });
|
||||
Assert.NotNull(result);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user