comparison HowTo/DataAccess/DiscoverParameters.cs @ 0:f990fcb411a9

Копия текущей версии из github
author cin
date Thu, 27 Mar 2014 21:46:09 +0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f990fcb411a9
1 using NUnit.Framework;
2 using BLToolkit.DataAccess;
3
4 namespace HowTo.DataAccess
5 {
6 [TestFixture]
7 public class DiscoverParameters
8 {
9 public abstract class PersonAccessor : DataAccessor
10 {
11 [/*[a]*/DiscoverParameters/*[/a]*/]
12 public abstract Person SelectByName(string anyParameterName, string otherParameterName);
13 }
14
15 [Test]
16 public void Test()
17 {
18 PersonAccessor pa = DataAccessor.CreateInstance<PersonAccessor>();
19 Person p = pa.SelectByName("Tester", "Testerson");
20
21 Assert.AreEqual(2, p.ID);
22 }
23 }
24 }