main
 1using jive;
 2using Machine.Specifications;
 3
 4namespace specs.unit.utility
 5{
 6  public class ConfigurationExtensionsSpecs
 7  {
 8    public interface IDbCommand {
 9      void Execute();
10    }
11
12    public class when_configuring_an_item
13    {
14      It should_return_the_item_that_was_configured_when_completed = () => result.should_be_equal_to(item.Object);
15
16      Establish context = () =>
17      {
18        configuration = Create.an<Configuration<IDbCommand>>();
19        item = Create.an<IDbCommand>();
20      };
21
22      Because of = () =>
23      {
24        result = item.Object.and_configure_with(configuration.Object);
25      };
26
27      static Moq.Mock<Configuration<IDbCommand>> configuration;
28      static Moq.Mock<IDbCommand> item;
29      static IDbCommand result;
30    }
31  }
32}