Пример #1
0
        public void TestMinimumContactIsValid01()
        {
            var testSubject = new MinimumContact(new StateCourt("NV"))
            {
                GetIntentionalTortTo = lp => lp is ExampleDefendant ? new ExamplePlaintiff() : null,
                GetDomicileLocation  = lp => lp is ExamplePlaintiff ? new VocaBase("NV") : null,
            };
            var testResult = testSubject.IsValid(new ExamplePlaintiff(), new ExampleDefendant());

            Assert.IsTrue(testResult);

            Console.WriteLine(testSubject.ToString());
        }
Пример #2
0
        public void TestMinimumContactIsValid00()
        {
            var testSubject = new MinimumContact(new StateCourt("NV"))
            {
                GetActiveVirtualContactLocation = lp => lp is ExampleDefendant ? new [] { new VocaBase("NV") } : null,
                GetInjuryLocation = lp => new VocaBase("NV")
            };

            var testResult = testSubject.IsValid(new ExamplePlaintiff(), new ExampleDefendant());

            Assert.IsTrue(testResult);

            Console.WriteLine(testSubject.ToString());
        }