51 lines
1.7 KiB
C#
51 lines
1.7 KiB
C#
using TIAM.Entities.Addresses;
|
|
using TIAM.Entities.Transfers;
|
|
|
|
namespace TIAM.Database.Test;
|
|
|
|
public static class TestHelper
|
|
{
|
|
public static TransferDestinationToProduct CreateTransferDestinationToProduct(Guid transferDestinationToProductId, Guid transferDestId, Guid productId)
|
|
{
|
|
var transferDestinationToProduct = new TransferDestinationToProduct();
|
|
transferDestinationToProduct.Id = transferDestinationToProductId;
|
|
transferDestinationToProduct.ProductId = productId;
|
|
transferDestinationToProduct.TransferDestinationId = transferDestId;
|
|
transferDestinationToProduct.Price = 5000;
|
|
transferDestinationToProduct.Price2 = 6000;
|
|
transferDestinationToProduct.Price3 = 8000;
|
|
transferDestinationToProduct.ProductCommis = 0.1d;
|
|
|
|
return transferDestinationToProduct;
|
|
}
|
|
|
|
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;
|
|
}
|
|
} |