summaryrefslogtreecommitdiff
path: root/product/DataAccess/Transactions/ChangeTrackerFactorySpecs.cs
blob: 58bc25b591f09315eb55cfc933e1bd193c065ddf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
using System;
using developwithpassion.bdd.contexts;
using Gorilla.Commons.Infrastructure.Transactions;
using Gorilla.Commons.Testing;
using Gorilla.Commons.Utility.Core;

namespace MoMoney.DataAccess.Transactions
{
    public class ChangeTrackerFactorySpecs
    {
    }

    [Concern(typeof (ChangeTrackerFactory))]
    public class when_creating_a_change_tracker_for_an_item : concerns_for<IChangeTrackerFactory, ChangeTrackerFactory>
    {
        it should_return_a_new_tracker = () => result.should_not_be_null();

        because b = () => { result = sut.create_for<IIdentifiable<Guid>>(); };

        static IChangeTracker<IIdentifiable<Guid>> result;
    }
}