using DiplomovaPrace.Model.Orders;
using Havit.Data.Patterns.DataSeeds;
using Havit.Data.Patterns.DataSeeds.Profiles;

namespace DiplomovaPrace.DataLayer.Seeds
{
	public class DeliveryTypeSeed : DataSeed<DefaultProfile>
	{
		public override void SeedData()
		{
			DeliveryType[] data = new DeliveryType[]
			{
				new DeliveryType
				{
					ID = (int)DeliveryType.Entry.Pickup,
					Name = "Vyzvednutí na prodejně",
					Fee = 0,
					ShippingDays = 0
				},
				new DeliveryType
				{
					ID = (int)DeliveryType.Entry.Delivery,
					Name = "Doručení námi",
					Fee = 200,
					ShippingDays = 5
				}
				//new DeliveryType
				//{
				//	Name = "DPD",
				//	Fee = 99,
				//	ShippingDays = 3
				//},
				//new DeliveryType
				//{
				//	Name = "Česká pošta",
				//	Fee = 79,
				//	ShippingDays = 4
				//}
			};

			Seed(For(data).PairBy(i => i.Name).WithoutUpdate());
		}
	}
}
