Exemple #1
0
        public void Integration_ProjectInstaller_MWS_Build_returns_container()
        {
            // Arrange
            frb = new FluentRecordBase();
            var bootstrapper = new InstallBootstrapper();
            IUnityContainer container = bootstrapper.Build();
            // Act
            IEnumerable<Installer> result = container.ResolveAll<Installer>();

            // Assert
            Assert.AreEqual(2, result.ToArray().Count(), "InstallBootstrapper for service does not return expected number of objects");
        }
 public ProjectInstaller()
 {
     var bootstrapper = new InstallBootstrapper();
     IUnityContainer container = bootstrapper.Build();
     IEnumerable<Installer> installers = container.ResolveAll<Installer>();
     Installers.AddRange(installers.ToArray());
     //
     //
     EventLogInstaller installer = FindInstaller(this.Installers);
     if (installer != null)
     {
         installer.Log = EventViewerConfig.log; // enter your event log name here
     }
 }