예제 #1
0
        public void CanBeToldToIgnoreNonExistenceOfOtherAggregateRoot()
        {
            var someRoot = new BeetRoot
            {
                UnitOfWork = GetUnitOfWork()
            };

            Assert.DoesNotThrow(someRoot.LoadOtherBeetRootButOverrideBehavior);
        }
예제 #2
0
        public void CanBeToldToIgnoreNonExistenceOfOtherAggregateRoot()
        {
            var someRoot = new BeetRoot
            {
                UnitOfWork = GetUnitOfWork()
            };

            Assert.DoesNotThrow(someRoot.LoadOtherBeetRootButOverrideBehavior);
        }
예제 #3
0
        public void DefaultsToThrowingIfLoadedAggregateRootCannotBeFound()
        {
            var someRoot = new BeetRoot
            {
                UnitOfWork = GetUnitOfWork()
            };

            Assert.Throws <ArgumentException>(someRoot.LoadOtherBeetRootWithDefaultBehavior);
        }
예제 #4
0
        public void DefaultsToThrowingIfLoadedAggregateRootCannotBeFound()
        {
            var someRoot = new BeetRoot
            {
                UnitOfWork = GetUnitOfWork()
            };

            Assert.Throws<AggregateRootNotFoundException>(someRoot.LoadOtherBeetRootWithDefaultBehavior);
        }