0
|
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 }
|