public void PolicyPremium_lt_zero_not_allowed() { // Arrange // Act // Assert PolicyPremium.Create(-5, new Currency(UnitOfWork)).IsValid.ShouldBeFalse(); }
public void PolicyPremium_empty_currency_not_allowed() { // Arrange // Act // Assert PolicyPremium.Create(0, null).IsValid.ShouldBeFalse(); PolicyPremium.Create(0, new Currency(UnitOfWork) { CurrencyName = null }).IsValid.ShouldBeFalse(); }
public void different_PolicyPremiums_should_NOT_be_equal() { // Arrange // Act // Assert PolicyPremium.Create(1, new Currency(UnitOfWork) { CurrencyName = "TEST" }) .ShouldNotBe( PolicyPremium.Create(10, new Currency(UnitOfWork) { CurrencyName = "TEST" }) ); }
public void PolicyPremiums_should_be_equal_even_with_invalid() { // Arrange // Act // Assert PolicyPremium.Create(-10, new Currency(UnitOfWork) { CurrencyName = "TEST" }) .ShouldNotBe( PolicyPremium.Create(-1, new Currency(UnitOfWork) { CurrencyName = "TEST" }) ); }