Exemplo n.º 1
0
        public void ValleyMedvFarber()
        {
            var testContract = new ComLawContract <Promise>
            {
                Offer      = new OfferVmsEmployment(),
                Acceptance = o => o is OfferVmsEmployment ? new AcceptVmsEmployment() : null,
                Assent     = new MutualAssent
                {
                    IsApprovalExpressed = lp => true,
                    TermsOfAgreement    = lp => GetTerms()
                }
            };

            testContract.Consideration = new Consideration <Promise>(testContract)
            {
                IsGivenByOfferee  = (lp, p) => true,
                IsSoughtByOfferor = (lp, p) => true
            };

            var testSubject = new ByRestrictCompetition <Promise>(testContract)
            {
                IsInjuriousToPublic    = lp => lp is ValleyMed,
                IsRestraintSelfServing = lp => lp is ValleyMed
            };

            var testResult = testSubject.IsValid(new ValleyMed(), new Farber());

            Console.WriteLine(testSubject.ToString());
            Assert.IsTrue(testResult);
        }
Exemplo n.º 2
0
        public void BatsakisvDemotsis()
        {
            var testContract = new ComLawContract <Promise>
            {
                Offer      = new OfferTwoThousandUsdDuringWar(),
                Acceptance = o => o is OfferTwoThousandUsdDuringWar ? new AcceptTwoThousandUsdDuringWar() : null,
                Assent     = new MutualAssent
                {
                    IsApprovalExpressed = lp => true,
                    TermsOfAgreement    = lp => GetTerms()
                }
            };

            testContract.Consideration = new Consideration <Promise>(testContract)
            {
                IsGivenByOfferee  = (lp, p) => true,
                IsSoughtByOfferor = (lp, p) => true
            };

            var testSubject = new ByUnconscionability <Promise>(testContract);

            var testResult = testSubject.IsValid(new Batsakis(), new Demotsis());

            //this case is present to present an unconscionable contract
            Assert.IsFalse(testResult);

            Console.WriteLine(testSubject.ToString());
        }
        public void OrdorizzivBloomfieldSchool()
        {
            var testContract = new ComLawContract <Promise>
            {
                Offer      = new OfferEmploymentBloomfieldSchool(),
                Acceptance = o => o is OfferEmploymentBloomfieldSchool ? new AcceptEmploymentBloomfieldSchool() : null,
                Assent     = new MutualAssent
                {
                    IsApprovalExpressed = lp => true,
                    TermsOfAgreement    = lp => GetTerms()
                }
            };

            testContract.Consideration = new Consideration <Promise>(testContract)
            {
                IsGivenByOfferee  = (lp, p) => true,
                IsSoughtByOfferor = (lp, p) => true
            };

            var testSubject = new ByUndueInfluence <Promise>(testContract)
            {
                IsInsistentOnNoTime4Advisors           = lp => lp is BloomfieldSchool,
                IsInsistentOnImmediateCompletion       = lp => lp is BloomfieldSchool,
                IsAbsentAdvisorsToServientParty        = lp => lp is Odorizzi,
                IsMultiPersuadersOnServientParty       = lp => lp is BloomfieldSchool,
                IsExtremeEmphasisOnConsequencesOfDelay = lp => lp is BloomfieldSchool,
                IsUnusualLocation = lp => lp is BloomfieldSchool || lp is Odorizzi
            };

            var testResult = testSubject.IsValid(new BloomfieldSchool(), new Odorizzi());

            Assert.IsTrue(testResult);
            Console.WriteLine(testSubject.ToString());
        }
Exemplo n.º 4
0
        public void WeavertownvMoran()
        {
            var testSubject = new ComLawContract <Promise>
            {
                Offer      = new OfferSellTicketLicx(),
                Acceptance = o => o is OfferSellTicketLicx ? new AcceptanceBuyTicketLicx() : null,
                Assent     = new MutualAssent
                {
                    IsApprovalExpressed = lp => true,
                    TermsOfAgreement    = lp => new HashSet <Term <object> > {
                        new Term <object>("undefined", DBNull.Value)
                    }
                }
            };

            testSubject.Consideration = new Consideration <Promise>(testSubject)
            {
                IsSoughtByOfferor = (lp, p) => true,
                IsGivenByOfferee  = (lp, p) => true
            };

            var testResult = testSubject.IsValid(new Weavertown(), new Moran());

            Assert.IsFalse(testResult);
            Console.WriteLine(testSubject.ToString());
        }
Exemplo n.º 5
0
        public void SherwoodvWalker()
        {
            var testContract = new ComLawContract <Promise>
            {
                Offer      = new OfferSellCow(),
                Acceptance = o => o is OfferSellCow ? new AcceptSellCow() : null,
                Assent     = new MutualAssent
                {
                    IsApprovalExpressed = lp => true,
                    TermsOfAgreement    = lp => (lp as Sherwood)?.GetTerms() ?? (lp as Walker)?.GetTerms()
                }
            };

            testContract.Consideration = new Consideration <Promise>(testContract)
            {
                IsGivenByOfferee  = (lp, p) => true,
                IsSoughtByOfferor = (lp, p) => true
            };

            var testSubject = new ByFraud <Promise>(testContract);
            var testResult  = testSubject.IsValid(new Sherwood(), new Walker());

            Assert.IsFalse(testResult);
            Console.WriteLine(testSubject.ToString());
        }
Exemplo n.º 6
0
        public void SchnellvNell()
        {
            var testSubject = new ComLawContract <Promise>
            {
                Offer      = new OfferOneCent(),
                Acceptance = o => o is OfferOneCent ? new AcceptancePaySixHundred() : null,
                Assent     = new MutualAssent
                {
                    IsApprovalExpressed = lp => true,
                    TermsOfAgreement    = lp => new HashSet <Term <object> > {
                        new Term <object>("undefined", DBNull.Value)
                    }
                }
            };

            testSubject.Consideration = new Consideration <Promise>(testSubject)
            {
                IsSoughtByOfferor = (lp, p) => true,
                IsGivenByOfferee  = (lp, p) => true
            };

            var testResult = testSubject.IsValid(new Schnell(), new Nell());

            Assert.IsFalse(testResult);
            Console.WriteLine(testSubject.ToString());
        }
        public void CrabtreevElizabethSales()
        {
            var testContract = new ComLawContract <Promise>
            {
                Offer      = new ElizabethSalesOfferTelephoneMemorandum(),
                Acceptance = o => o is ElizabethSalesOfferTelephoneMemorandum ? new AcceptElizabethOffer() : null,
                Assent     = new MutualAssent
                {
                    IsApprovalExpressed = lp => true,
                    TermsOfAgreement    = lp => GetTerms()
                }
            };

            testContract.Consideration = new Consideration <Promise>(testContract)
            {
                IsGivenByOfferee  = (lp, p) => true,
                IsSoughtByOfferor = (lp, p) => true
            };

            var testSubject = new StatuteOfFrauds <Promise>(testContract);

            //it is within the statute
            testSubject.Scope.IsYearsInPerformance = c => true;
            testSubject.IsSufficientWriting        = c => c.Offer is ElizabethSalesOfferTelephoneMemorandum;
            //this was the main doctrine point of this case, the signature-part
            //of the statute was scattered about but its overall intent and thereby assent are obvious
            testSubject.IsSigned = c => true;

            var testResult = testSubject.IsValid(new ElizabethSales(), new Crabtree());

            //the defendant was attempting to avoid contract enforcement by
            // saying it lacked signature part required by statute of frauds
            Assert.IsFalse(testResult);
            Console.WriteLine(testSubject.ToString());
        }
Exemplo n.º 8
0
        public void HobbsvMassasoitWhipCo()
        {
            var testSubject = new ComLawContract <Promise>
            {
                Offer      = new OfferEelSkins(),
                Acceptance = o => o is OfferEelSkins ? new AcceptanceByDoNothing() : null,
                Assent     = new MutualAssent
                {
                    IsApprovalExpressed = lp =>
                    {
                        var massasoit = lp as MassasoitWhipCo;
                        if (massasoit == null)
                        {
                            return(lp is Hobbs);
                        }

                        return(massasoit.IsEelSkinsAccepted && !massasoit.IsEelSkinsAttemptedReturned);
                    },
                    TermsOfAgreement = lp => new HashSet <Term <object> > {
                        new Term <object>("undefined", DBNull.Value)
                    }
                }
            };

            testSubject.Consideration = new Consideration <Promise>(testSubject)
            {
                IsSoughtByOfferor = (lp, p) => true,
                IsGivenByOfferee  = (lp, p) => true
            };

            var testResult = testSubject.IsValid(new Hobbs(), new MassasoitWhipCo());

            Assert.IsTrue(testResult);
            Console.WriteLine(testSubject.ToString());
        }
        public void WilliamsvWalkerThom()
        {
            var testContract = new ComLawContract <Promise>
            {
                Offer      = new OfferPurchaseOnCredit(),
                Acceptance = o => o is OfferPurchaseOnCredit ? new AcceptPurchaseOnCredit() : null,
                Assent     = new MutualAssent
                {
                    IsApprovalExpressed = lp => true,
                    TermsOfAgreement    = lp => GetTerms()
                }
            };

            testContract.Consideration = new Consideration <Promise>(testContract)
            {
                IsGivenByOfferee  = (lp, p) => true,
                IsSoughtByOfferor = (lp, p) => true
            };

            var testSubject = new ByUnconscionability <Promise>(testContract)
            {
                IsUnreasonablyFavorableTerms = lp => lp is WalkerThom
            };

            var testResult = testSubject.IsValid(new WalkerThom(), new Williams());

            Console.WriteLine(testSubject.ToString());
            Assert.IsTrue(testResult);
        }
Exemplo n.º 10
0
        public void JankowskivJedz()
        {
            var testSubject = new ComLawContract <Promise>
            {
                Offer      = new OfferRenderCustomaryGovSvc(),
                Acceptance = o => o is OfferRenderCustomaryGovSvc ? new AcceptanceOneThirdOfTaxRev() : null,
                Assent     = new MutualAssent
                {
                    IsApprovalExpressed = lp => true,
                    TermsOfAgreement    = lp => new HashSet <Term <object> > {
                        new Term <object>("undefined", DBNull.Value)
                    }
                }
            };

            testSubject.Consideration = new Consideration <Promise>(testSubject)
            {
                IsGivenByOfferee  = (lp, p) => true,
                IsSoughtByOfferor = (lp, p) => true
            };
            var testResult = testSubject.IsValid(new Jankowski(), new Jedz());

            Assert.IsFalse(testResult);
            Console.WriteLine(testSubject.ToString());
        }
Exemplo n.º 11
0
        public void InReEstateOfServertson()
        {
            var testSubject = new ComLawContract <Promise>
            {
                Offer      = new OfferToPurchaseFarmsite(),
                Acceptance = o => o is OfferToPurchaseFarmsite ? new AcceptancePriceInSignedDoc() : null,
                Assent     = new TypedAndSignedDocument()
            };

            testSubject.Consideration = new Consideration <Promise>(testSubject)
            {
                IsSoughtByOfferor = (lp, promise) => lp is HelenSevertson && promise is AcceptancePriceInSignedDoc,
                IsGivenByOfferee  = (lp, promise) => lp is MarkAndKellyThorson && promise is OfferToPurchaseFarmsite
            };

            var helen        = new HelenSevertson();
            var markAndKelly = new MarkAndKellyThorson();

            var testResult = testSubject.IsValid(helen, markAndKelly);

            Assert.IsTrue(testResult);
            helen.HasDied = true;
            testResult    = testSubject.IsValid(helen, markAndKelly);
            Assert.IsFalse(testResult);
            Console.WriteLine(testSubject.ToString());
        }
        public void AlaskaPackersAssocvDomenico()
        {
            var testSubject = new ComLawContract <Promise>
            {
                Offer      = new OfferEmployedAsFishermen(),
                Acceptance = o => o is OfferEmployedAsFishermen ? new AcceptanceOfEmployment() : null,
                Assent     = new MutualAssent
                {
                    IsApprovalExpressed = lp => true,
                    TermsOfAgreement    = lp => new HashSet <Term <object> > {
                        new Term <object>("fishing", DBNull.Value)
                    }
                }
            };

            testSubject.Consideration = new Consideration <Promise>(testSubject)
            {
                IsSoughtByOfferor = (lp, p) => true,
                IsGivenByOfferee  = (lp, p) => true,
                IsExistingDuty    = p => p is AcceptanceOfEmployment
            };

            var testResult = testSubject.IsValid(new AlaskaPackersAssoc(), new Domenico());

            Console.WriteLine(testResult);
            Console.WriteLine(testSubject.ToString());
        }
Exemplo n.º 13
0
        public void StevensvPublicis()
        {
            var testContract = new ComLawContract <Promise>
            {
                Offer      = new SomeEmail(),
                Acceptance = o => o is SomeEmail ? new SomeEmailResponse() : null,
                Assent     = new MutualAssent
                {
                    IsApprovalExpressed = lp => true,
                    TermsOfAgreement    = lp => GetTerms()
                }
            };

            testContract.Consideration = new Consideration <Promise>(testContract)
            {
                IsGivenByOfferee  = (lp, p) => true,
                IsSoughtByOfferor = (lp, p) => true
            };


            var testSubject = new StatuteOfFrauds <Promise>(testContract);

            testSubject.Scope.IsYearsInPerformance = c => true;
            testSubject.IsSufficientWriting        = c => c.Offer is SomeEmail && c.Acceptance(c.Offer) is SomeEmailResponse;
            testSubject.IsSigned = c => c.Offer is SomeEmail && c.Acceptance(c.Offer) is SomeEmailResponse;
            var testResult = testSubject.IsValid(new Stevens(), new Publicis());

            //the statute of frauds written\signed bits are very easy with electronic emails and such
            Assert.IsFalse(testResult);
            Console.WriteLine(testSubject.ToString());
        }
Exemplo n.º 14
0
        public void QuigleyvWilson()
        {
            var testSubject = new ComLawContract <Promise>
            {
                Offer      = new OfferSellFarmOnContract(),
                Acceptance = o => o is OfferSellFarmOnContract ? new AcceptanceBuyFarmPayInstallments() : null,
                Assent     = new MutualAssent
                {
                    IsApprovalExpressed = lp => true,
                    TermsOfAgreement    = lp => new HashSet <Term <object> > {
                        new Term <object>("the farm", DBNull.Value)
                    }
                }
            };

            testSubject.Consideration = new Consideration <Promise>(testSubject)
            {
                IsSoughtByOfferor = (lp, p) => true,
                IsGivenByOfferee  = (lp, p) => true,
                //this is the doctrine point of this one
                IsExistingDuty = p => !(p is OfferSellFarmOnContract || p is AcceptanceBuyFarmPayInstallments)
            };

            var testResult = testSubject.IsValid(new Quigley(), new Wilson());

            Console.WriteLine(testSubject.ToString());
            Assert.IsTrue(testResult);
        }
Exemplo n.º 15
0
        public void HanksvPowderRidge()
        {
            var testContract = new ComLawContract <Promise>
            {
                Offer      = new OfferSnowTubing(),
                Acceptance = o => o is OfferSnowTubing ? new AcceptSnowTubing() : null,
                Assent     = new MutualAssent
                {
                    IsApprovalExpressed = lp => true,
                    TermsOfAgreement    = lp => GetTerms()
                }
            };

            testContract.Consideration = new Consideration <Promise>(testContract)
            {
                IsGivenByOfferee  = (lp, p) => true,
                IsSoughtByOfferor = (lp, p) => true
            };

            var testSubject = new ByLimitTortLiability <Promise>(testContract)
            {
                IsOfferToAnyMemberOfPublic    = lp => lp is PowderRidge,
                IsStandardizedAdhesion        = lp => lp is PowderRidge,
                IsSubjectToSellerCarelessness = lp => lp is PowderRidge,
                IsSuitableForPublicRegulation = lp => lp is PowderRidge,
                IsAdvantageOverMemberOfPublic = lp => lp is PowderRidge
            };

            var testResult = testSubject.IsValid(new PowderRidge(), new Hanks());

            Console.WriteLine(testSubject.ToString());
            Assert.IsTrue(testResult);
        }
Exemplo n.º 16
0
        public void McInerneyvCharterGolf()
        {
            var testContract = new ComLawContract <Promise>
            {
                Offer      = new CharterGolfCounterOfferEmpl(),
                Acceptance = o => o is CharterGolfCounterOfferEmpl ? new McInerneyContEmplAtCharter() : null,
                Assent     = new MutualAssent
                {
                    IsApprovalExpressed = lp => true,
                    TermsOfAgreement    = lp => GetTerms()
                }
            };

            testContract.Consideration = new Consideration <Promise>(testContract)
            {
                IsGivenByOfferee  = (lp, p) => true,
                IsSoughtByOfferor = (lp, p) => true
            };

            var testSubject = new StatuteOfFrauds <Promise>(testContract);

            //court finds it is in scope to statute of frauds
            testSubject.Scope.IsYearsInPerformance = c => true;

            var testResult = testSubject.IsValid(new CharterGolf(), new McInerney());

            //so it is a valid defense because it lacks sufficient writing (was oral agreement)
            Assert.IsTrue(testResult);
            Console.WriteLine(testSubject.ToString());
        }
Exemplo n.º 17
0
        public void KloianvDominosPizza()
        {
            var testSubject = new ComLawContract <Promise>
            {
                Offer      = new OfferDefendantPay2SettleLawsuit(),
                Acceptance = o =>
                             o is OfferDefendantPay2SettleLawsuit ? new AcceptanceEmailFromPlaintiffAttorney() : null,
                Assent = new MutualAssent
                {
                    TermsOfAgreement = lp =>
                    {
                        var isParty = lp is PartiesInCase;
                        return(!isParty ? null : GetTerms());
                    },
                    IsApprovalExpressed = lp => (lp as PartiesInCase)?.IsApprovalExpressed ?? false
                },
            };

            testSubject.Consideration = new Consideration <Promise>(testSubject)
            {
                IsSoughtByOfferor = (lp, promise) => lp is EdwardKloian && promise is AcceptanceEmailFromPlaintiffAttorney,
                IsGivenByOfferee  = (lp, promise) => lp is DominosPizzaLlc && promise is OfferDefendantPay2SettleLawsuit,
            };

            var testResult = testSubject.IsValid(new EdwardKloianAttorney(), new DominosPizzaLlcAttorney());

            Assert.IsTrue(testResult);
            Console.WriteLine(testSubject.ToString());
        }
Exemplo n.º 18
0
        public void StandardFinancevEllis()
        {
            var testContract = new ComLawContract <Promise>
            {
                Offer      = new OfferOnPromissoryNote(),
                Acceptance = o => o is OfferOnPromissoryNote ? new AcceptOnPromissoryNote() : null,
                Assent     = new MutualAssent
                {
                    IsApprovalExpressed = lp => true,
                    TermsOfAgreement    = lp => GetTerms()
                }
            };

            testContract.Consideration = new Consideration <Promise>(testContract)
            {
                IsGivenByOfferee  = (lp, p) => true,
                IsSoughtByOfferor = (lp, p) => true
            };

            var testSubject = new ByDuress <Promise>(testContract);

            //court found that there was not threat made
            var testResult = testSubject.IsValid(new Ellis(), new StandardFinance());

            Assert.IsFalse(testResult);
            Console.WriteLine(testSubject.ToString());
        }
Exemplo n.º 19
0
        public void HamervSidway()
        {
            var testSubject = new ComLawContract <Promise>
            {
                Offer      = new OfferPay5000On21stBday(),
                Acceptance = o => o is OfferPay5000On21stBday ? new AcceptanceToRefrainFromVice() : null,
                Assent     = new MutualAssent
                {
                    IsApprovalExpressed = lp => true,
                    TermsOfAgreement    = lp => new HashSet <Term <object> > {
                        new Term <object>("undefined", DBNull.Value)
                    }
                }
            };

            testSubject.Consideration = new Consideration <Promise>(testSubject)
            {
                IsSoughtByOfferor = (lp, p) => true,
                IsGivenByOfferee  = (lp, p) => true
            };

            var testResult = testSubject.IsValid(new Hamer(), new Sidway());

            Console.WriteLine(testResult);
            Console.WriteLine(testSubject.ToString());
        }
Exemplo n.º 20
0
        public void OrtelerevTeachersBoard()
        {
            var testContract = new ComLawContract <Promise>
            {
                Offer      = new MaxInLifetimeOption(),
                Acceptance = o => o as MaxInLifetimeOption,
                Assent     = new MutualAssent
                {
                    IsApprovalExpressed = lp => true,
                    TermsOfAgreement    = lp => Ortelere.GetTerms()
                }
            };

            testContract.Consideration = new Consideration <Promise>(testContract)
            {
                IsGivenByOfferee  = (lp, p) => true,
                IsSoughtByOfferor = (lp, p) => true
            };
            var testSubject = new ByMentalIncompetent <Promise>(testContract)
            {
                IsMentallyIncompetent = lp => lp is Ortelere
            };
            var testResult = testSubject.IsValid(new Ortelere(), new TeachersBoard());

            Assert.IsTrue(testResult);
            Console.WriteLine(testSubject.ToString());
        }
Exemplo n.º 21
0
        public void WoodvBoynton()
        {
            var testContract = new ComLawContract <Promise>
            {
                Offer      = new OfferSmallStone(),
                Acceptance = o => o is OfferSmallStone ? new AcceptSmallStone() : null,
                Assent     = new MutualAssent
                {
                    IsApprovalExpressed = lp => true,
                    TermsOfAgreement    = lp => GetTerms()
                }
            };

            testContract.Consideration = new Consideration <Promise>(testContract)
            {
                IsGivenByOfferee  = (lp, p) => true,
                IsSoughtByOfferor = (lp, p) => true
            };

            //court found there was no misrepresentation
            var testSubject = new ByFraud <Promise>(testContract);

            var testResult = testSubject.IsValid(new Boynton(), new Wood());

            Assert.IsFalse(testResult);
            Console.WriteLine(testSubject.ToString());
        }
        public void AustinInstrumentvLoralCorp()
        {
            var testContract = new ComLawContract <Promise>
            {
                Offer      = new OfferSubcontractorComponents(),
                Acceptance = o => o is OfferSubcontractorComponents ? new AcceptanceSubcontractorComponents() : null,
                Assent     = new MutualAssent
                {
                    IsApprovalExpressed = lp => true,
                    TermsOfAgreement    = lp => GetTerms()
                }
            };

            testContract.Consideration = new Consideration <Promise>(testContract)
            {
                IsGivenByOfferee  = (lp, p) => true,
                IsSoughtByOfferor = (lp, p) => true
            };

            var testSubject = new ByDuress <Promise>(testContract)
            {
                ImproperThreat = new ImproperThreat <Promise>(testContract)
                {
                    //austin all ready had a duty to deliver parts,
                    IsBreachOfGoodFaithDuty         = lp => lp is AustinInstruments,
                    IsUnfairTerms                   = lp => lp is AustinInstruments,
                    IsSignificantViaPriorUnfairDeal = lp => lp is AustinInstruments,
                }
            };

            var testResult = testSubject.IsValid(new LoralCorp(), new AustinInstruments());

            Assert.IsTrue(testResult);
            Console.WriteLine(testSubject.ToString());
        }
Exemplo n.º 23
0
        public void ExParteOdem()
        {
            var testContract = new ComLawContract <Promise>
            {
                Offer      = new RenderMedicalTreatment(),
                Acceptance = o => o is RenderMedicalTreatment ? new PayMedicalTreatment() : null,
                Assent     = new MutualAssent
                {
                    IsApprovalExpressed = lp => true,
                    TermsOfAgreement    = lp => GetTerms()
                },
            };

            testContract.Consideration = new Consideration <Promise>(testContract)
            {
                IsGivenByOfferee  = (lp, p) => true,
                IsSoughtByOfferor = (lp, p) => true
            };
            var testSubject = new ByMinor <Promise>(testContract)
            {
                IsDeclareVoid = lp => lp is IrisOdem
            };

            var testResult = testSubject.IsValid(new ChildrensHospital(), new IrisOdem());

            Assert.IsTrue(testResult);
            Console.WriteLine(testSubject.ToString());
        }
Exemplo n.º 24
0
        public void PoelvBrunswick()
        {
            var testSubject = new ComLawContract <Promise>
            {
                Offer      = new Apr6Bruns2Poel(),
                Acceptance = o => o is Apr6Bruns2Poel ? new Jan7Bruns2Poel() : null
            };
            var testResult = testSubject.IsValid(new Brunswick(), new Poel());

            Console.WriteLine(testResult);
            Console.WriteLine(testSubject.ToString());
        }
Exemplo n.º 25
0
        public void HendricksvBehee()
        {
            var testSubject = new ComLawContract <Promise>
            {
                Offer      = new OfferFromBehee2Smiths(),
                Acceptance = o => o is OfferFromBehee2Smiths ? new AcceptanceSmiths2Behee() : null,
            };

            var testResult = testSubject.IsValid(new Behee(), new Smiths());

            Assert.IsFalse(testResult);
            Console.WriteLine(testSubject.ToString());
        }
Exemplo n.º 26
0
        public void ConferateMotorsvTerny()
        {
            var testSubject = new ComLawContract <Promise>
            {
                Offer      = new OfferDec28th(),
                Acceptance = o => new AcceptanceTooLate(),
                //didn't ever bother with Consideration and MutualAssent since this is DOA
            };

            var testResult = testSubject.IsValid(new ConfedMotorsInc(), new Terny());

            Assert.IsFalse(testResult);
            Console.WriteLine(testSubject.ToString());
        }
Exemplo n.º 27
0
        public void RicketvScothron()
        {
            var testSubject = new ComLawContract <DonativePromise>
            {
                Offer = new OfferTwoThousandToGranddaughter(),
            };

            testSubject.Consideration = new PromissoryEstoppel <DonativePromise>(testSubject);

            var testResult = testSubject.IsValid(new Rickets(), new Scothorn());

            Assert.IsTrue(testResult);
            Console.WriteLine(testSubject.ToString());
        }
Exemplo n.º 28
0
        public void ConradvFields()
        {
            var testSubject = new ComLawContract <Promise>()
            {
                Offer = new OfferPayForLawSchool()
            };

            testSubject.Consideration = new PromissoryEstoppel <Promise>(testSubject)
            {
                IsOffereeDependedOnPromise = lp => true,
                IsOffereePositionWorse     = lp => true
            };
            var testResult = testSubject.IsValid(new Fields(), new Conrad());

            Assert.IsTrue(testResult);
            Console.WriteLine(testSubject.ToString());
        }
Exemplo n.º 29
0
        public void MayervKingCola()
        {
            var testSubject = new ComLawContract <Promise>
            {
                Offer = new OfferEmploymentWithKingCola(),
            };

            testSubject.Consideration = new PromissoryEstoppel <Promise>(testSubject)
            {
                IsOffereePositionWorse = lp => false
            };

            var testResult = testSubject.IsValid(new KingCola(), new Mayer());

            Assert.IsFalse(testResult);
            Console.WriteLine(testSubject.ToString());
        }
        public void RidgeRunnerForestryvVeneman()
        {
            var testSubject = new ComLawContract <DonativePromise>()
            {
                Offer      = new OfferRequestForQuotations(),
                Acceptance = o => o is OfferRequestForQuotations ? new AcceptanceInteragencyRental() : null,
            };

            testSubject.Consideration = new Consideration <DonativePromise>(testSubject)
            {
                IsSoughtByOfferor = (lp, p) => lp is RidgeRunnerForestry && p is AcceptanceInteragencyRental,
                IsGivenByOfferee  = (lp, p) => lp is Veneman && p is OfferRequestForQuotations
            };
            var testResult = testSubject.IsValid(new RidgeRunnerForestry(), new Veneman());

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