private TestRunner(TestCriteria criteria) { if (criteria == null) { throw new ArgumentNullException($"{nameof(criteria)} cannot be null"); } Criteria = criteria; JournalPlugin = Criteria.Config.GetString("akka.persistence.journal.plugin"); }
public static void Main(string[] args) { //replace this with your relevant config for persistence, defaults to inmem //if you are using a different persistence plugin make sure to also include //the NuGet package of that plugin for this to work. var config = Config.Empty; var criteria = new TestCriteria(config, 1000, 100); var testRunner = TestRunner.Init(criteria); var testResult = testRunner.Run(); Console.WriteLine(testResult); Console.ReadLine(); }
public static TestResult From(TestCriteria criteria, long elapsedMilliseconds) { return(new TestResult(criteria.ActorCount, criteria.MessagesPerActor, elapsedMilliseconds)); }
public static TestRunner Init(TestCriteria criteria) { return(new TestRunner(criteria)); }