2025-01-17 12:17:44 +01:00
|
|
|
|
using BS.Shared.AppSender;
|
|
|
|
|
|
using BS.Shared.DataContracts.GkvAbrechnung;
|
2024-07-22 10:33:37 +02:00
|
|
|
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.IO;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
|
|
namespace DakotaUnitTest
|
|
|
|
|
|
{
|
|
|
|
|
|
[TestClass]
|
|
|
|
|
|
public class GkvObjectUnitTest
|
|
|
|
|
|
{
|
|
|
|
|
|
[TestInitialize]
|
|
|
|
|
|
public void Initialize()
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[TestMethod]
|
|
|
|
|
|
public void ValidateXmlParse()
|
|
|
|
|
|
{
|
2024-10-25 17:30:27 +02:00
|
|
|
|
var convert = GkvServerResultXml.GetResultXml("fehler_example.xml");
|
2024-07-22 10:33:37 +02:00
|
|
|
|
|
|
|
|
|
|
Assert.IsNotNull(convert);
|
|
|
|
|
|
}
|
2025-01-17 12:17:44 +01:00
|
|
|
|
|
|
|
|
|
|
[TestMethod]
|
|
|
|
|
|
public void ValidateRequest()
|
|
|
|
|
|
{
|
|
|
|
|
|
var req = new GkvClientSumRequest();
|
|
|
|
|
|
req.Tenant = "1234567890";
|
|
|
|
|
|
req.GkvSecretKey = "gG4qtB5g5G45345bg35bg5";
|
|
|
|
|
|
req.Start = new DateTime(2024, 12, 1);
|
|
|
|
|
|
req.End = new DateTime(2024, 12, 31);
|
|
|
|
|
|
|
|
|
|
|
|
var str = GkvSender.SerializeRequest(req);
|
|
|
|
|
|
}
|
2024-07-22 10:33:37 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|