PageRenderTime 10ms CodeModel.GetById 1ms app.highlight 5ms RepoModel.GetById 2ms app.codeStats 0ms

/V2.2/trunk/RI/StockTraderRI.Tests.AcceptanceTest/StockTraderRI.Tests.AcceptanceTest/TestInfrastructure/DataProvider/MockModels/MarketHistory.cs

#
C# | 64 lines | 42 code | 6 blank | 16 comment | 0 complexity | 3ded80a6b3f6b85501d4b541d825b2b8 MD5 | raw file
 1//===================================================================================
 2// Microsoft patterns & practices
 3// Composite Application Guidance for Windows Presentation Foundation and Silverlight
 4//===================================================================================
 5// Copyright (c) Microsoft Corporation.  All rights reserved.
 6// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY
 7// OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT
 8// LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
 9// FITNESS FOR A PARTICULAR PURPOSE.
10//===================================================================================
11// The example companies, organizations, products, domain names,
12// e-mail addresses, logos, people, places, and events depicted
13// herein are fictitious.  No association with any real company,
14// organization, product, domain name, email address, logo, person,
15// places, or events is intended or should be inferred.
16//===================================================================================
17using System;
18using System.Collections.Generic;
19using System.Linq;
20using System.Text;
21using System.Xml.Serialization;
22
23namespace StockTraderRI.Tests.AcceptanceTest.TestInfrastructure.MockModels
24{
25    [Serializable]
26    [XmlRoot("MarketHistoryItem")]
27    public class MarketHistoryItem
28    {
29        private string symbol;
30        private DateTime date;
31        private decimal item;
32
33        public MarketHistoryItem()
34        { }
35
36        public MarketHistoryItem(string symbol, DateTime date, decimal item)
37        {
38            this.symbol = symbol;
39            this.date = date;
40            this.item = item;
41        }
42
43        [XmlAttribute("TickerSymbol")]
44        public string TickerSymbol 
45        {
46            get { return this.symbol; }
47            set { this.symbol = value; }
48        }
49
50        [XmlAttribute("Date")]
51        public DateTime Date
52        {
53            get { return this.date; }
54            set { this.date = value; }
55        }
56
57        [XmlElement("MarketHistoryItem")]
58        public decimal MarketItem
59        {
60            get { return this.item; }
61            set { this.item = value; }
62        }
63    }
64}