IsFemale() публичный Метод

public IsFemale ( ) : bool
Результат bool
Пример #1
0
 private List<TaxSlab> GetAppropriateTaxSlabs(User taxPayer)
 {
     if (taxPayer.IsFemale()){
         return _femaleTaxSlabs;
     }
     return _maleTaxSlabs;
 }
Пример #2
0
 private List <TaxSlab> GetAppropriateTaxSlabs(User taxPayer)
 {
     if (taxPayer.IsFemale())
     {
         return(_femaleTaxSlabs);
     }
     return(_maleTaxSlabs);
 }
Пример #3
0
 public void ShouldReturnTrueIfTaxPayerIsFemale()
 {
     User taxPayer = new User(0, false, Gender.Female);
     Assert.True(taxPayer.IsFemale());
 }