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

namespace DiplomovaPrace.DataLayer.Seeds
{
	public class OrderStateSeed : DataSeed<DefaultProfile>
	{
		public override void SeedData()
		{
			OrderState[] data = new OrderState[]
			{
				new OrderState
				{
					ID = (int)OrderState.Entry.ShoppingCart,
					Name = "Nákupní košík"
				},
				new OrderState
				{
					ID = (int)OrderState.Entry.Accepted,
					Name = "Přijato"
				},
				new OrderState
				{
					ID = (int)OrderState.Entry.WaitingForPayment,
					Name = "Čekání na platbu"
				},
				new OrderState
				{
					ID = (int)OrderState.Entry.Paid,
					Name = "Uhrazeno"
				},
				new OrderState
				{
					ID = (int)OrderState.Entry.Sent,
					Name = "Odesláno"
				},
				new OrderState
				{
					ID = (int)OrderState.Entry.Delivered,
					Name = "Doručeno"
				},
				new OrderState
				{
					ID = (int)OrderState.Entry.ReadyForPickUp,
					Name = "Připraveno k vyzvednutí"
				},
				new OrderState
				{
					ID = (int)OrderState.Entry.Closed,
					Name = "Vyřízeno"
				},
				new OrderState
				{
					ID = (int)OrderState.Entry.Cancelled,
					Name = "Zrušeno"
				}
			};

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