public void ApplyDefaultForPrincipal_WhenDefaultAccountingNumberIsNull_AssertDefaultForPrincipalEqualToFalse() { IAccounting sut = CreateSut(); sut.ApplyDefaultForPrincipal(null); Assert.That(sut.DefaultForPrincipal, Is.False); }
public void ApplyDefaultForPrincipal_WhenDefaultAccountingNumberMatchNumber_AssertDefaultForPrincipalEqualToTrue() { int number = _fixture.Create <int>(); IAccounting sut = CreateSut(number); sut.ApplyDefaultForPrincipal(number); Assert.That(sut.DefaultForPrincipal, Is.True); }
public IAccounting ApplyLogicForPrincipal(IAccounting accounting) { NullGuard.NotNull(accounting, nameof(accounting)); int?accountingNumber = _claimResolver.GetAccountingNumber(); accounting.ApplyDefaultForPrincipal(accountingNumber); return(accounting); }