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)); }
public void ConstructorTest() { GruppoSettings settings = new GruppoSettings(); MessageBroker broker = new MessageBroker(settings); }
public MessageBroker(GruppoSettings settings) { _topics = new Dictionary <string, Topic>(); this._settings = settings; }