Test über UnitTest
This commit is contained in:
@@ -12,7 +12,5 @@
|
||||
<add key="SendMailModuleGkvTestSmtpPassword" value="JJVjJntw2yaRDAxInotF" />
|
||||
<add key="SendMailModuleGkvTestSender" value="noreply@bewoplaner.de" />
|
||||
<add key="SendMailModuleGkvTestReceiver" value="dakota.exchange@ownsoft.de" />
|
||||
|
||||
<add key="GkvSecretKey" value="DfDGNGn72PKfSYxSUsmRdzuBtpR9novewlmYU3gsjiFgSkaZZeylUXlbO42cWNqiKgLdMUFtWUNZT962F1raQDR7HGUzCNYsFeC" />
|
||||
</appSettings>
|
||||
</configuration>
|
||||
@@ -26,12 +26,17 @@ namespace DakotaUnitTest
|
||||
|
||||
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
|
||||
|
||||
|
||||
var req = new GkvClientSumRequestJson();
|
||||
req.GkvSecretKey = ConfigurationManager.AppSettings.Get("GkvSecretKey");
|
||||
req.Tenant = "5000000000";
|
||||
req.GkvSecretKey = "DfDGNGn72PKfSYxSUsmRdzuBtpR9novewlmYU3gsjiFgSkaZZeylUXlbO42cWNqiKgLdMUFtWUNZT962F1raQDR7HGUzCNYsFeC";
|
||||
req.Tenant = "9005111114";
|
||||
req.Start = new DateTime(2025, 1, 30);
|
||||
req.End = new DateTime(2025, 1, 30, 10, 0, 0);
|
||||
|
||||
var res = AppRequestSender.Send<GkvClientSumRequestJson, GkvClientSumResponseJson>(req, "https://app5.bewoplaner.de/service/GkvAbrechnungClient.aspx");
|
||||
|
||||
var test = res.Sum;
|
||||
|
||||
Assert.IsTrue(res.Success);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user