2022-01-22 18:16:10 +01:00
|
|
|
|
using NUnit.Framework;
|
2024-04-09 12:53:23 +02:00
|
|
|
|
using ShareeBike.Model;
|
2022-01-22 18:16:10 +01:00
|
|
|
|
|
2024-04-09 12:53:23 +02:00
|
|
|
|
namespace SharedBusinessLogic.Tests.Model
|
2022-01-22 18:16:10 +01:00
|
|
|
|
{
|
2022-09-06 16:08:19 +02:00
|
|
|
|
[TestFixture]
|
|
|
|
|
public class TestPositionFactory
|
|
|
|
|
{
|
|
|
|
|
[Test]
|
|
|
|
|
public void TestCreatePosition()
|
|
|
|
|
{
|
|
|
|
|
Assert.That(
|
|
|
|
|
PositionFactory.Create(9.55, 8.33).GetType(),
|
|
|
|
|
Is.EqualTo(typeof(Position)));
|
|
|
|
|
}
|
2022-01-22 18:16:10 +01:00
|
|
|
|
|
2022-09-06 16:08:19 +02:00
|
|
|
|
[Test]
|
|
|
|
|
public void TestCreateNullPosition()
|
|
|
|
|
{
|
|
|
|
|
Assert.That(
|
|
|
|
|
PositionFactory.Create().GetType(),
|
2023-04-19 12:14:14 +02:00
|
|
|
|
Is.EqualTo(typeof(NullPosition)));
|
2022-09-06 16:08:19 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
2022-01-22 18:16:10 +01:00
|
|
|
|
}
|