summaryrefslogtreecommitdiff
path: root/product/database/transactions/ChangeTrackerFactorySpecs.cs
diff options
context:
space:
mode:
Diffstat (limited to 'product/database/transactions/ChangeTrackerFactorySpecs.cs')
-rw-r--r--product/database/transactions/ChangeTrackerFactorySpecs.cs22
1 files changed, 22 insertions, 0 deletions
diff --git a/product/database/transactions/ChangeTrackerFactorySpecs.cs b/product/database/transactions/ChangeTrackerFactorySpecs.cs
new file mode 100644
index 0000000..45f511e
--- /dev/null
+++ b/product/database/transactions/ChangeTrackerFactorySpecs.cs
@@ -0,0 +1,22 @@
+using System;
+using developwithpassion.bdd.contexts;
+using Gorilla.Commons.Testing;
+using gorilla.commons.utility;
+
+namespace momoney.database.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<Identifiable<Guid>>();
+ };
+
+ static IChangeTracker<Identifiable<Guid>> result;
+ }
+} \ No newline at end of file