diff options
Diffstat (limited to 'spec/unit/infrastructure/logging/LogSpecs.cs')
| -rw-r--r-- | spec/unit/infrastructure/logging/LogSpecs.cs | 68 |
1 files changed, 34 insertions, 34 deletions
diff --git a/spec/unit/infrastructure/logging/LogSpecs.cs b/spec/unit/infrastructure/logging/LogSpecs.cs index 26b6b7c..2262bea 100644 --- a/spec/unit/infrastructure/logging/LogSpecs.cs +++ b/spec/unit/infrastructure/logging/LogSpecs.cs @@ -1,34 +1,34 @@ -using gorilla.infrastructure.container;
-using gorilla.infrastructure.logging;
-using Machine.Specifications;
-
-namespace specs.unit.infrastructure.logging
-{
- [Subject(typeof (Log))]
- public class when_creating_a_logger_for_a_particular_type
- {
- It should_return_the_logger_created_for_that_type = () => result.should_be_equal_to(logger.Object);
-
- Establish c =
- () =>
- {
- var factory = Create.an<LogFactory>();
- var registry = Create.an<DependencyRegistry>();
- logger = Create.an<Logger>();
- registry.Setup(x => x.get_a<LogFactory>()).Returns(factory.Object);
- factory.Setup(x => x.create_for(typeof (string))).Returns(logger.Object);
-
- Resolve.initialize_with(registry.Object);
- };
-
- Because b = () =>
- {
- result = Log.For("mo");
- };
-
- Cleanup a = () => Resolve.initialize_with(null);
-
- static Logger result;
- static Moq.Mock<Logger> logger;
- }
-}
+using jive.infrastructure.container; +using jive.infrastructure.logging; +using Machine.Specifications; + +namespace specs.unit.infrastructure.logging +{ + [Subject(typeof (Log))] + public class when_creating_a_logger_for_a_particular_type + { + It should_return_the_logger_created_for_that_type = () => result.should_be_equal_to(logger.Object); + + Establish c = + () => + { + var factory = Create.an<LogFactory>(); + var registry = Create.an<DependencyRegistry>(); + logger = Create.an<Logger>(); + registry.Setup(x => x.get_a<LogFactory>()).Returns(factory.Object); + factory.Setup(x => x.create_for(typeof (string))).Returns(logger.Object); + + Resolve.initialize_with(registry.Object); + }; + + Because b = () => + { + result = Log.For("mo"); + }; + + Cleanup a = () => Resolve.initialize_with(null); + + static Logger result; + static Moq.Mock<Logger> logger; + } +} |
