diff options
Diffstat (limited to 'src/MVPtoMVVM.test/mvp/BootStrapperTest.cs')
| -rwxr-xr-x | src/MVPtoMVVM.test/mvp/BootStrapperTest.cs | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/MVPtoMVVM.test/mvp/BootStrapperTest.cs b/src/MVPtoMVVM.test/mvp/BootStrapperTest.cs new file mode 100755 index 0000000..5a5a150 --- /dev/null +++ b/src/MVPtoMVVM.test/mvp/BootStrapperTest.cs @@ -0,0 +1,25 @@ +using MVPtoMVVM.mvp;
+using MVPtoMVVM.repositories;
+using NUnit.Framework;
+using StructureMap;
+
+namespace MVPtoMVVM.test.mvp
+{
+ [TestFixture]
+ public class BootStrapperTest
+ {
+
+ [SetUp]
+ public void Setup()
+ {
+ new Bootstrap().Execute();
+ }
+
+ [Test]
+ public void it_should_register_the_repository()
+ {
+ ObjectFactory.WhatDoIHave();
+ Assert.That(ObjectFactory.GetInstance<ITodoItemRepository>(), Is.TypeOf<TodoItemRepository>());
+ }
+ }
+}
\ No newline at end of file |
