mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2025-04-20 20:16:30 +02:00
Legacy testing lib added..
This commit is contained in:
parent
0167fc321f
commit
47ed05837e
118 changed files with 17505 additions and 0 deletions
|
@ -0,0 +1,29 @@
|
|||
using NUnit.Framework;
|
||||
using TINK.Model;
|
||||
using TINK.Repository;
|
||||
|
||||
using static TINK.Repository.CopriCallsMemory;
|
||||
|
||||
namespace TestTINKLib.Fixtures.Connector
|
||||
{
|
||||
|
||||
[TestFixture]
|
||||
public class TestBikesAvailableResponse
|
||||
{
|
||||
[Test]
|
||||
public void TestDeserialize_StateAvailable()
|
||||
{
|
||||
// Deserialize object and verify.
|
||||
var l_oContainer = GetBikesAvailable(TinkApp.MerchantId, p_eSampleSet: SampleSets.Set2, p_lStageIndex: 1);
|
||||
Assert.AreEqual(12, l_oContainer.bikes.Count);
|
||||
|
||||
// Check first entry.
|
||||
Assert.AreEqual("Cargo Trike", l_oContainer.bikes["3399"].description);
|
||||
Assert.AreEqual("26", l_oContainer.bikes["3399"].bike);
|
||||
Assert.AreEqual("available", l_oContainer.bikes["3399"].state);
|
||||
Assert.AreEqual("47.6586936667", l_oContainer.bikes["3399"].gps.latitude);
|
||||
Assert.AreEqual("9.16863116667", l_oContainer.bikes["3399"].gps.longitude);
|
||||
Assert.AreEqual("4", l_oContainer.bikes["3399"].station);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue