Esempio n. 1
0
        public void Run()
        {
            var container = new MiniContainer();

            container
            .MapType <IActionStepsFinder, ActionStepsFinder>()
            .MapType <IAssemblyLoader, AssemblyLoader>()
            .MapType <IFeatureRunner, FeatureRunner>()
            .MapType <IGherkinParser, StupidGherkinParser>()
            .MapType <IObjectActivator, TrivialObjectActivator>()
            .MapType <IPropertySetter, IntelligentPropertySetter>()
            .MapType <IPropertySetter, TrivialPropertySetter>()
            .MapType <IFeatureFileFinder, FeatureFileFinder>()
            .MapType <IFileReader, FileReader>();

            container.Configure <IntelligentPropertySetter>(s => s.AddAssembly(container.Resolve <IAssemblyLoader>().LoadAssembly(AssemblyPath)));

            var runner = container.Resolve <DefaultCommandLineRunner>();

            runner.Execute(new CommandLineArguments
            {
                AssemblyPath    = AssemblyPath,
                FeaturePattern  = FeaturePattern,
                TagsToInclude   = Split(Include),
                TagsToExclude   = Split(Exclude),
                DruRun          = DryRun,
                SuccessRequired = SuccessRequired,
                ShowCurrentTime = ShowCurrentTime,
            });
        }
Esempio n. 2
0
        private static MiniContainer CreateContainer()
        {
            var container = new MiniContainer();

            container.ComponentRegistry.AddRegistrationSource(new CollectionRegistrationSource());

            return(container);
        }
 public override void DoSetUp()
 {
     container = new MiniContainer();
 }
Esempio n. 4
0
 public override void DoSetUp()
 {
     container = new MiniContainer();
 }