summaryrefslogtreecommitdiff
path: root/spec/unit/infrastructure/registries/DefaultRegistrySpecs.cs
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/infrastructure/registries/DefaultRegistrySpecs.cs')
-rw-r--r--spec/unit/infrastructure/registries/DefaultRegistrySpecs.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/unit/infrastructure/registries/DefaultRegistrySpecs.cs b/spec/unit/infrastructure/registries/DefaultRegistrySpecs.cs
index bab9efb..743eaaa 100644
--- a/spec/unit/infrastructure/registries/DefaultRegistrySpecs.cs
+++ b/spec/unit/infrastructure/registries/DefaultRegistrySpecs.cs
@@ -10,7 +10,7 @@ namespace specs.unit.infrastructure.registries
public class when_retrieving_all_the_items_from_the_default_repository
{
It should_leverage_the_resolver_to_retrieve_all_the_implementations =
- () => registry.was_told_to(r => r.get_all<int>());
+ () => registry.Verify(r => r.get_all<int>());
It should_return_the_items_resolved_by_the_registry = () => result.should_contain(24);
@@ -18,13 +18,13 @@ namespace specs.unit.infrastructure.registries
{
var items_to_return = new List<int> {24};
registry = Create.an<DependencyRegistry>();
- registry.is_told_to(r => r.get_all<int>()).it_will_return(items_to_return);
+ registry.Setup(r => r.get_all<int>()).Returns(items_to_return);
sut = create_sut();
};
static Registry<int> create_sut()
{
- return new DefaultRegistry<int>(registry);
+ return new DefaultRegistry<int>(registry.Object);
}
Because b = () =>
@@ -32,8 +32,8 @@ namespace specs.unit.infrastructure.registries
result = sut.all();
};
- static DependencyRegistry registry;
+ static Moq.Mock<DependencyRegistry> registry;
static IEnumerable<int> result;
static Registry<int> sut;
}
-} \ No newline at end of file
+}