mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-12-25 00:26:27 +01:00
31 lines
678 B
C#
31 lines
678 B
C#
|
using NUnit.Framework;
|
|||
|
using System;
|
|||
|
using TINK.Model.State;
|
|||
|
|
|||
|
|
|||
|
namespace TestTINKLib
|
|||
|
{
|
|||
|
|
|||
|
[TestFixture]
|
|||
|
public class TestStateBookedInfo
|
|||
|
{
|
|||
|
[Test]
|
|||
|
public void TestConstruct()
|
|||
|
{
|
|||
|
var l_oBookedInfo = new StateOccupiedInfo(new DateTime(2017, 09, 20, 23, 05, 0), "Heinz@mueller", "17 xxb");
|
|||
|
|
|||
|
Assert.AreEqual(
|
|||
|
new DateTime(2017, 09, 20, 23, 05, 0),
|
|||
|
l_oBookedInfo.From);
|
|||
|
|
|||
|
Assert.AreEqual(
|
|||
|
"Heinz@mueller",
|
|||
|
l_oBookedInfo.MailAddress);
|
|||
|
|
|||
|
Assert.AreEqual(
|
|||
|
"17 xxb",
|
|||
|
l_oBookedInfo.Code);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|