| Rev | Line | |
|---|
| [882] | 1 | using System;
|
|---|
| 2 | using System.Collections.Generic;
|
|---|
| 3 | using System.Linq;
|
|---|
| 4 | using System.Text;
|
|---|
| 5 | using NUnit.Framework;
|
|---|
| 6 | using Platnosci.Core.Linq;
|
|---|
| 7 | using Platnosci.Core.Interface;
|
|---|
| 8 |
|
|---|
| 9 | namespace Platnosci.Tests.Web
|
|---|
| 10 | {
|
|---|
| 11 | [TestFixture]
|
|---|
| 12 | class TestMethods
|
|---|
| 13 | {
|
|---|
| 14 | private Function _f = new Function();
|
|---|
| 15 |
|
|---|
| 16 | [Test]
|
|---|
| 17 | [Category("Unit")]
|
|---|
| 18 | public void TestInsertMethodForPayment()
|
|---|
| 19 | {
|
|---|
| 20 | FakeDataContext fake = new FakeDataContext();
|
|---|
| [896] | 21 | var _rep = new Repository<vPlatnosciEcard>(fake);
|
|---|
| [882] | 22 |
|
|---|
| [896] | 23 | vPlatnosciEcard platnosc = _f.createInvoice(123, "nip", "", 0, 0);
|
|---|
| [882] | 24 | _rep.Insert(platnosc);
|
|---|
| 25 |
|
|---|
| [896] | 26 | System.Diagnostics.Debug.WriteLine("rep.Count: " + _rep.Count());
|
|---|
| 27 | vPlatnosciEcard pl = _rep.FindOne(123);
|
|---|
| 28 | System.Diagnostics.Debug.WriteLine("Wartosc nip ma byc 'nip'. Jest " + pl.nip);
|
|---|
| 29 | Assert.That(pl.nip, Is.EqualTo("nip"));
|
|---|
| [882] | 30 | }
|
|---|
| 31 | }
|
|---|
| 32 | }
|
|---|
Notatka: Zobacz
TracBrowser
aby uzyskać więcej informacji.