mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-11-05 10:36:30 +01:00
27 lines
562 B
C#
27 lines
562 B
C#
using System;
|
|
using NUnit.Framework;
|
|
using ShareeBike.Model.State;
|
|
|
|
|
|
namespace SharedBusinessLogic.Tests
|
|
{
|
|
|
|
[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.That(
|
|
l_oBookedInfo.From, Is.EqualTo(new DateTime(2017, 09, 20, 23, 05, 0)));
|
|
|
|
Assert.That(
|
|
l_oBookedInfo.MailAddress, Is.EqualTo("Heinz@mueller"));
|
|
|
|
Assert.That(
|
|
l_oBookedInfo.Code, Is.EqualTo("17 xxb"));
|
|
}
|
|
}
|
|
}
|