示例#1
0
        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");
        }
示例#2
0
文件: Program.cs 项目: lulzzz/Entropy
        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();
        }
示例#3
0
 public static TestResult From(TestCriteria criteria, long elapsedMilliseconds)
 {
     return(new TestResult(criteria.ActorCount, criteria.MessagesPerActor, elapsedMilliseconds));
 }
示例#4
0
 public static TestRunner Init(TestCriteria criteria)
 {
     return(new TestRunner(criteria));
 }