public InternalTransaction(IInitializationInformation initializationInformation)
 {
     _logicHelper     = new LogicHelper(initializationInformation);
     _applicationName = initializationInformation.ApplicationName;;
     _queueMessenger  = new MessageRoutingType {
     }.MessageQueueSelection(initializationInformation);
 }
 public RelationalDatabase(IInitializationInformation initializationInformation)
 {
     _logicHelper     = new LogicHelper(initializationInformation);
     _applicationName = initializationInformation.ApplicationName;
     _queueMessenger  = new MessageRoutingType {
     }.MessageQueueSelection(initializationInformation);
 }
示例#3
0
        public SimpleLoggingTests()
        {
            Mock <IQueueMessenger> queueMessenger = new Mock <IQueueMessenger>();

            queueMessenger.Setup(x => x.SendMessage(It.IsAny <byte[]>()));
            _queueMessenger            = queueMessenger.Object;
            _initializationInformation = new InitialilizationInformation(MessageQueueType.RabbitMQ);
            _initializationInformation.RabbitMq.ExchangeName = "Testing";
            _initializationInformation.RabbitMq.HostName     = "localHost";
            _initializationInformation.RabbitMq.Password     = "******";
            _initializationInformation.RabbitMq.UserName     = "******";
            _initializationInformation.RabbitMq.PortNumber   = 5672;
            _initializationInformation.RabbitMq.QueueName    = "SimpleLoggingClientTest";
            _initializationInformation.RabbitMq.RoutingKey   = "key";
            _initializationInformation.ApplicationName       = APPLICATION_NAME;
            _logicHelper         = new LogicHelper(_initializationInformation);
            _internalTransaction = new InternalTransaction(_initializationInformation);
            _externalTransaction = new ExternalTransaction(_initializationInformation);
            _application         = new Application(_initializationInformation);
            _messageQueue        = new MessageQueue(_initializationInformation);
            _relationalDatabase  = new RelationalDatabase(_initializationInformation);
        }
 public MessageQueue()
 {
     _logicHelper    = new LogicHelper();
     _queueMessenger = new QueueMessenger();
 }
示例#5
0
 public Application()
 {
     _logicHelper    = new LogicHelper();
     _queueMessenger = new QueueMessenger();
 }