blob: 400e9f4db513fa6d06e53d2e2ef19e712f06d5b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
using System;
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()
{
Console.Out.WriteLine(ObjectFactory.WhatDoIHave());
Assert.That(ObjectFactory.GetInstance<ITodoItemRepository>(), Is.TypeOf<TodoItemRepository>());
}
}
}
|