public void When_assortmentHasPermanentBlock_then_CantBlockPermanently() { Assortment assortment = AnyPermanentBlockedAssortment(); Owner owner = AnyOwner(); var result = assortment.BlockPermanentlyFor(owner); Assert.That(result, Is.False); }
public void When_assortmentHasTemporaryBlockByOtherOwner_then_CantBlockPermanent() { Assortment assortment = AnyTemporaryBlockedAssortment(); Owner owner = Owner.New(Guid.NewGuid()); var result = assortment.BlockPermanentlyFor(owner); Assert.That(result, Is.False); }
public void When_assortmentHasNotAnyBlock_then_BlockPermanently() { Assortment assortment = NotBlockedAssortment(); Owner owner = AnyOwner(); var result = assortment.BlockPermanentlyFor(owner); Assert.That(result, Is.True); Assert.That(assortment.IsBlocked(), Is.True); }