Mercurial > pub > bltoolkit
annotate UnitTests/Fluent/MockDataBase/MockReaderData.cs @ 1:8f65451dc28f
Исправлена проблема с фабрикой и выборкой нескольких объектов в linq выражении
author | cin |
---|---|
date | Fri, 28 Mar 2014 01:04:56 +0400 |
parents | f990fcb411a9 |
children |
rev | line source |
---|---|
0 | 1 using System; |
2 using System.Collections.Generic; | |
3 using System.Linq; | |
4 | |
5 namespace BLToolkit.Fluent.Test.MockDataBase | |
6 { | |
7 public class MockReaderData | |
8 { | |
9 public MockReaderData() | |
10 { | |
11 Results = new List<MockReaderResultData>(); | |
12 } | |
13 | |
14 public List<MockReaderResultData> Results { get; private set; } | |
15 | |
16 public MockReaderResultData CurrentResult | |
17 { | |
18 get { return Results.LastOrDefault(); } | |
19 set { Results.Add(value); } | |
20 } | |
21 } | |
22 } |