Ejemplo n.º 1
0
        private MessageBroker MakeBroker()
        {
            var context     = TestContext.CurrentContext;
            var storagePath = Path.Combine(context.WorkDirectory, context.Test.Name, context.Test.ID, "topics");

            if (Directory.Exists(storagePath))
            {
                Directory.Delete(storagePath, true);
            }

            var settings = new GruppoSettings()
            {
                MaxMessagesInMessageFile = 100,
                StorageDirectory         = storagePath
            };


            return(new MessageBroker(settings));
        }
Ejemplo n.º 2
0
 public void ConstructorTest()
 {
     GruppoSettings settings = new GruppoSettings();
     MessageBroker  broker   = new MessageBroker(settings);
 }
Ejemplo n.º 3
0
 public MessageBroker(GruppoSettings settings)
 {
     _topics        = new Dictionary <string, Topic>();
     this._settings = settings;
 }