public void ValidateShouldThrowGivenNullStringBuilder()
        {
            BudgetBucket subject = Arrange();

            subject.Validate(null);
            Assert.Fail();
        }
        public void ValidateShouldRetrunFalseGivenLongCode()
        {
            BudgetBucket subject = Arrange();

            subject.Code = "ABC345678";
            bool result = subject.Validate(new StringBuilder());

            Assert.IsFalse(result);
        }
        public void ValidateWillReturnFalseWhenNameIsNull()
        {
            BudgetBucket subject = Arrange();

            subject.Code = "Foo";
            var builder = new StringBuilder();

            Assert.IsFalse(subject.Validate(builder));
            Assert.IsTrue(builder.Length > 0);
        }
        public void ValidateWillReturnFalseWhenCodeIsTooLong()
        {
            BudgetBucket subject = Arrange();

            subject.Description = "FooBarHo";
            var builder = new StringBuilder();

            Assert.IsFalse(subject.Validate(builder));
            Assert.IsTrue(builder.Length > 0);
        }