public void CanBeToldToIgnoreNonExistenceOfOtherAggregateRoot() { var someRoot = new BeetRoot { UnitOfWork = GetUnitOfWork() }; Assert.DoesNotThrow(someRoot.LoadOtherBeetRootButOverrideBehavior); }
public void DefaultsToThrowingIfLoadedAggregateRootCannotBeFound() { var someRoot = new BeetRoot { UnitOfWork = GetUnitOfWork() }; Assert.Throws <ArgumentException>(someRoot.LoadOtherBeetRootWithDefaultBehavior); }
public void DefaultsToThrowingIfLoadedAggregateRootCannotBeFound() { var someRoot = new BeetRoot { UnitOfWork = GetUnitOfWork() }; Assert.Throws<AggregateRootNotFoundException>(someRoot.LoadOtherBeetRootWithDefaultBehavior); }