Esempio n. 1
0
        public void When_assortmentHasPermanentBlock_then_CantBlockPermanently()
        {
            Assortment assortment = AnyPermanentBlockedAssortment();
            Owner      owner      = AnyOwner();

            var result = assortment.BlockPermanentlyFor(owner);

            Assert.That(result, Is.False);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        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);
        }