Contact page shows operator specific info

This commit is contained in:
Oliver Hauff 2021-07-20 23:06:09 +02:00
parent e436e83c1d
commit a58c33f005
51 changed files with 948 additions and 221 deletions

View file

@ -10,17 +10,20 @@ namespace TestTINKLib.Fixtures.ObjectTests.Station
[Test]
public void TestConstruct()
{
var l_oNull = new NullStation();
var nullStation = new NullStation();
// Was -1 before swiching type of id from int to string when switching from COPRI version v4.0 to v4.1
Assert.That(
l_oNull.Id,
nullStation.Id,
Is.Null);
Assert.AreEqual(0, l_oNull.Group.ToList().Count);
Assert.AreEqual(string.Empty, l_oNull.StationName);
Assert.IsNaN(l_oNull.Position.Latitude);
Assert.IsNaN(l_oNull.Position.Longitude);
Assert.AreEqual(0, nullStation.Group.ToList().Count);
Assert.AreEqual(string.Empty, nullStation.StationName);
Assert.IsNaN(nullStation.Position.Latitude);
Assert.IsNaN(nullStation.Position.Longitude);
Assert.That(
nullStation.OperatorData,
Is.Not.Null);
}
}
}