static PlainSingletonUseCase()
 {
     var logger = new Logger();
     var errorHandler = new ErrorHandler(logger);
     var database = new Database(logger, errorHandler);
     stockQuote = new StockQuote(logger, errorHandler, database);
     authenticator = new Authenticator(logger, errorHandler, database);
 }
 public Database Get()
 {
     if (database == null)
     {
         database = new Database();
     }
     return database;
 }
 public Database Get()
 {
     if (database == null)
     {
         EnsureSessionFactory();
         database = new Database(sessionFactory.OpenSession());
     }
     return database;
 }