comparison HowTo/DataAccess/SprocName.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 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 }