public void SetUp() { LoggingHelper.InitConsoleLogger("PDFCreatorTest", LoggingLevel.Off); _queue = new Queue(); _queue.Initialize(); _pdfCreatorObj = new PdfCreatorObj(); var bootstrapper = new PDFCreatorBootstrapper(); var container = new Container(); bootstrapper.ConfigureContainer(container, null); _th = container.GetInstance <TestHelper>(); }
public void AllAppStarts_AreRegistered() { var bootstrapper = new PDFCreatorBootstrapper(); var container = new Container(); bootstrapper.ConfigureContainer(container, null); var appStarts = (from assembly in AppDomain.CurrentDomain.GetAssemblies() from type in assembly.GetTypes() where !type.IsAbstract && typeof(IAppStart).IsAssignableFrom(type) select type).ToList(); foreach (var appStart in appStarts) { Assert.DoesNotThrow(() => container.GetInstance(appStart)); } CollectionAssert.IsNotEmpty(appStarts); }