24 lines
797 B
C#
24 lines
797 B
C#
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);
|
|
}
|
|
}
|
|
}
|