37 lines
1020 B
C#
37 lines
1020 B
C#
using TIAM.Entities.Addresses;
|
|
using TIAM.Entities.Transfers;
|
|
|
|
namespace TIAM.Database.Test;
|
|
|
|
public static class TestHelper
|
|
{
|
|
public static TransferDestination CreateTransferDestination(Guid transferDestId, Guid addressId)
|
|
{
|
|
var name = "Liszt Ferenc repülőtér";
|
|
var address = "Budapest, Liszt Ferenc tér";
|
|
|
|
var transferDest = new TransferDestination
|
|
{
|
|
Id = transferDestId,
|
|
AddressId = addressId,
|
|
Name = name,
|
|
Description = name + "description",
|
|
Price = 15000,
|
|
//Price2 = 21000,
|
|
//Price3 = 23000,
|
|
//PriceType = PriceType.Fix,
|
|
AddressString = address,
|
|
Address = new Address
|
|
{
|
|
Id = addressId,
|
|
AddressText = address,
|
|
IsValid = false,
|
|
IsHelper = false,
|
|
Latitude = null,
|
|
Longitude = null
|
|
}
|
|
};
|
|
|
|
return transferDest;
|
|
}
|
|
} |