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()); }
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()); }