0
|
1 using System;
|
|
2 using System.Collections.Generic;
|
|
3
|
|
4 using NUnit.Framework;
|
|
5
|
|
6 using BLToolkit.DataAccess;
|
|
7
|
|
8 namespace HowTo.DataAccess
|
|
9 {
|
|
10 [TestFixture]
|
|
11 public class SprocName
|
|
12 {
|
|
13 public abstract class TestAccessor : DataAccessor
|
|
14 {
|
|
15 [/*[a]*/SprocName/*[/a]*/("Person_SelectAll")]
|
|
16 public abstract List<Person> GetPersonList();
|
|
17 }
|
|
18
|
|
19 [Test]
|
|
20 public void Test()
|
|
21 {
|
|
22 TestAccessor ta = DataAccessor.CreateInstance<TestAccessor>();
|
|
23
|
|
24 List<Person> list = ta.GetPersonList();
|
|
25
|
|
26 Assert.AreNotEqual(0, list.Count);
|
|
27 }
|
|
28 }
|
|
29 }
|