public void adds_all_the_startup_actions_from_the_requested_assembly()
        {
            registry.AddFixturesFromAssemblyContaining <SetUserAction>();
            var container = registry.BuildContainer();

            var actions = container.Model.For <IStartupAction>();

            var setupAction = actions.Instances.FirstOrDefault(i => i.ConcreteType == typeof(SetUserAction));

            setupAction.ShouldNotBeNull();
            setupAction.Name.ShouldEqual("SetUser");

            var startWebApp = actions.Instances.FirstOrDefault(i => i.ConcreteType == typeof(StartWebAppAction));

            startWebApp.Name.ShouldEqual("StartWebApp");
        }
        public void SetUp()
        {
            var builder  = new LibraryBuilder(new NulloFixtureObserver(), new CompositeFilter <Type>());
            var registry = new FixtureRegistry();

            registry.AddFixturesFromAssemblyContaining <SetUserAction>();

            var container = registry.BuildContainer();
            var context   = new TestContext(container);


            library = builder.Build(context);
        }
Пример #3
0
        public void SetUp()
        {
            var builder = new LibraryBuilder(new NulloFixtureObserver(), new CompositeFilter<Type>());
            var registry = new FixtureRegistry();
            registry.AddFixturesFromAssemblyContaining<SetUserAction>();

            var container = registry.BuildContainer();
            var context = new TestContext(container);

            library = builder.Build(context);
        }