示例#1
0
        protected Container CreateTestContainer(Action <BreezeOptions> configureAction = null)
        {
            var testContainer = new Container();

            testContainer.Options.DefaultScopedLifestyle = new AsyncScopedLifestyle();
            ConfigureContainer(testContainer);
            testContainer.RegisterValidatorsFromAssemblyOf <Order>();
            testContainer.AddBreeze(configureAction);

            testContainer.Register <BreezeEntityManager>(Lifestyle.Transient);
            testContainer.RegisterPackages();

            testContainer.Verify();

            return(testContainer);
        }