|
//--------------------------------------------------------------------------------------------------------------
// Created by : Gianluca Negrelli
// Copyright : 2010.05.17
//--------------------------------------------------------------------------------------------------------------
using System.Collections.Generic;
using Ecommerce.Business.Entities;
namespace Ecommerce.Business
{
/// <summary>
/// Well it's a fake class. It's only to have something to work with.
/// </summary>
internal class DataProvider
{
internal static IList<Stuff> GetComputerItem()
{
IList<Stuff> listItem = new List<Stuff>();
listItem.Add(new Stuff() { IsAvailable = true, Code = "NK50C", Description = "ASUS K50C-SX009 - CPU Intel Celeron 220 (1.2GHz) - RAM 2GB", Name = "ASUS K50C", Price = (decimal)349.00 });
listItem.Add(new Stuff() { IsAvailable = true, Code = "ND610", Description = "Dell Latitude D610 - CPU Intel Pentium M/Centrino (1.6Ghz) - RAM512 DDR2", Name = "Dell D610", Price = (decimal)205.50 });
listItem.Add(new Stuff() { IsAvailable = true, Code = "NA5235", Description = "ACER 5235 - CPU Intel Celeron DUAL CORE T3100 - RAM 2GB", Name = "ACER 5235", Price = (decimal)355.90 });
listItem.Add(new Stuff() { IsAvailable = false, Code = "NTL450", Description = "Toshiba Satellite Pro L450-180 - CPU Intel Core 2 Duo T6570 (2.10GHz) - RAM 4GB", Name = "Toshiba L450-180", Price = (decimal)579.00 });
return listItem;
}
internal static IList<Stuff> GetMonitorItem()
{
IList<Stuff> listItem = new List<Stuff>();
listItem.Add(new Stuff() { IsAvailable = true, Code = "MPhi22", Description = "LCD Philips 22 WIDESCREEN", Name = "LCD Philips 22", Price = (decimal)209.20 });
listItem.Add(new Stuff() { IsAvailable = false, Code = "MSam23", Description = "MONITOR SAMSUNG LCD 23 SYNC MASTER F2380 150.000:1", Name = "LCD SAMSUNG 23", Price = (decimal)299.00 });
listItem.Add(new Stuff() { IsAvailable = true, Code = "MHP17", Description = "HP LE1711 FLAT MONITOR 17 TCO03", Name = "HP LCD 17", Price = (decimal)158.52 });
return listItem;
}
internal static IList<Stuff> GetKeyboardItem()
{
IList<Stuff> listItem = new List<Stuff>();
listItem.Add(new Stuff() { IsAvailable = true, Code = "KMS600", Description = "Keyboard Microsoft 600 white USB", Name = "Microsoft 600", Price = (decimal)12.40 });
listItem.Add(new Stuff() { IsAvailable = true, Code = "KLTD", Description = "Keyboard Logitech deluxe black PS2", Name = "Logitech deluxe", Price = (decimal)14.96 });
return listItem;
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I'm the very proud father of
SyMenu, a multi awarded portable start menu and
www.ghezee.com an innovative ads web site.