Exemple #1
0
        public void TestThatGetHouseholdLimitReturnsActualHouseholdLimit(Membership membership, int householdLimit)
        {
            IDomainObjectValidations sut = new DomainObjectValidations();

            Assert.That(sut, Is.Not.Null);

            int result = sut.GetHouseholdLimit(membership);

            Assert.That(result, Is.EqualTo(householdLimit));
        }
Exemple #2
0
        public void TestThatGetHouseholdLimitReturnsHouseholdLimitForEachMembership()
        {
            IDomainObjectValidations sut = new DomainObjectValidations();

            Assert.That(sut, Is.Not.Null);

            foreach (Membership membershipToTest in Enum.GetValues(typeof(Membership)).Cast <Membership>())
            {
                int result = sut.GetHouseholdLimit(membershipToTest);
                Assert.That(result, Is.GreaterThan(0));
            }
        }