Exemple #1
0
        public void SetUp()
        {
            var registry = new IntegratorTestRegistry();
            _graph = registry.BuildGraph();

            _commandGraph = registry.CommandRegistry.BuildGraph();
        }
        public void default_generator_throws_an_error()
        {
            var registry = new IntegratorTestRegistry();
            var graph = registry.BuildGraph();

            Exception<MissingMethodException>
                .ShouldBeThrownBy(() => graph
                                            .MapFor<ComplexEntity>()
                                            .GeneratorPolicy
                                            .Build(ValueRequest.For<ComplexEntity>())
                                            .Generate());
        }