2022-08-30 15:42:25 +02:00
|
|
|
|
using System;
|
|
|
|
|
using NUnit.Framework;
|
2024-04-09 12:53:23 +02:00
|
|
|
|
using ShareeBike.Model;
|
|
|
|
|
using ShareeBike.Model.Map;
|
|
|
|
|
using ShareeBike.Model.Services.CopriApi;
|
|
|
|
|
using ShareeBike.Services.CopriApi;
|
2022-01-04 18:54:03 +01:00
|
|
|
|
|
2024-04-09 12:53:23 +02:00
|
|
|
|
namespace SharedBusinessLogic.Tests.Services.CopriApi
|
2022-01-04 18:54:03 +01:00
|
|
|
|
{
|
2022-09-06 16:08:19 +02:00
|
|
|
|
[TestFixture]
|
|
|
|
|
public class TestResult
|
|
|
|
|
{
|
|
|
|
|
[Test]
|
|
|
|
|
public void TestCtor()
|
|
|
|
|
{
|
|
|
|
|
Assert.That(
|
|
|
|
|
new Result<object>(typeof(TestResult), new TestResult(), null).GeneralData,
|
|
|
|
|
Is.Not.Null);
|
|
|
|
|
}
|
2022-01-04 18:54:03 +01:00
|
|
|
|
|
2022-09-06 16:08:19 +02:00
|
|
|
|
[Test]
|
|
|
|
|
public void TestGeneralData()
|
|
|
|
|
{
|
|
|
|
|
Assert.That(
|
|
|
|
|
new Result<object>(typeof(TestResult), new TestResult(), new GeneralData(
|
|
|
|
|
MapSpanFactory.Create(),
|
|
|
|
|
"Hello",
|
|
|
|
|
new Version(0, 0),
|
|
|
|
|
new ResourceUrls())).GeneralData.MerchantMessage,
|
|
|
|
|
Is.EqualTo("Hello"));
|
|
|
|
|
}
|
|
|
|
|
}
|
2022-01-04 18:54:03 +01:00
|
|
|
|
}
|