public void Init()
        {
            this.container = new UnityContainer();
            ContainerBootstrapper.Configure(container);

            this.ldapStore = ProfileStoreHelper.GetProfileStore("aExpense");
        }
 public void TestInit()
 {
     DatabaseHelper.CleanLoggingDB(TracingDatabaseConnectionString);
     this.container = new UnityContainer();
     ContainerBootstrapper.Configure(container);
     this.listener = new InMemoryEventListener();
     this.listener.EnableEvents(AExpenseEvents.Log, EventLevel.LogAlways, Keywords.All);
 }
        public void TestInitialize()
        {
            this.container = new UnityContainer();
            ContainerBootstrapper.Configure(container);

            this.ldapStore    = container.Resolve <IProfileStore>();
            this.exceptionMgr = container.Resolve <ExceptionManager>();
        }
        public void Init()
        {
            IConfigurationSource config = ConfigurationSourceFactory.Create();

            this.valFactory           = ValidationFactory.DefaultCompositeValidatorFactory;
            this.valFactoryFromConfig = ConfigurationValidatorFactory.FromConfigurationSource(config);
            this.container            = new UnityContainer();
            ContainerBootstrapper.Configure(this.container);
        }
Ejemplo n.º 5
0
        public void TestInitialize()
        {
            obsListener = new ObservableEventListener();
            obsListener.EnableEvents(AExpenseEvents.Log, EventLevel.LogAlways, Keywords.All);

            DatabaseHelper.CleanLoggingDB(TracingDatabaseConnectionString);

            this.container = new UnityContainer();
            ContainerBootstrapper.Configure(container);

            this.ldapStore    = container.Resolve <IProfileStore>();
            this.exceptionMgr = container.Resolve <ExceptionManager>();
        }
Ejemplo n.º 6
0
        public void TestInitialize()
        {
            this.container = new UnityContainer();
            ContainerBootstrapper.Configure(container);

            DatabaseHelper.CleanLoggingDB(TracingDatabaseConnectionString);

            string baseDirectory = AppDomain.CurrentDomain.BaseDirectory.Replace(@"bin\Debug", "").Replace(".Tests", "");

            tracingFilename = Path.Combine(baseDirectory, tracingFilename);
            UIlogFilename   = Path.Combine(baseDirectory, UIlogFilename);

            File.Delete(tracingFilename);
            File.Delete(UIlogFilename);

            obsListener = new ObservableEventListener();
            obsListener.EnableEvents(AExpenseEvents.Log, EventLevel.LogAlways, Keywords.All);

            DatabaseHelper.CreateDatabase(TestDatabaseConnectionString);
        }
Ejemplo n.º 7
0
 public void Arrange()
 {
     this.container = new UnityContainer();
     ContainerBootstrapper.Configure(container);
 }
Ejemplo n.º 8
0
 public void TestInit()
 {
     DatabaseHelper.CleanLoggingDB(LoggingDatabaseConnectionString);
     this.container = new UnityContainer();
     ContainerBootstrapper.Configure(container);
 }
 public void TestInit()
 {
     this.dataContext = new MockExpenseDataContext();
     this.container   = new UnityContainer();
     ContainerBootstrapper.Configure(this.container);
 }
 public void TestInitialize()
 {
     container = new UnityContainer();
     ContainerBootstrapper.Configure(container);
 }