예제 #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));
 }