public void OpenAuction(AuctionId id, string auctionName)
        {
            if (_aggregateState.Id != null)
                throw DomainError.Named("auction-already-created", "Auction was already created");

            RecordAndRealizeThat(new AuctionOpened(id, auctionName));
        }
        public void BidPlacedOnItem(AuctionId id, string bidderName)
        {
            ThrowExceptionIfAuctionIsNotOpen();

            RecordAndRealizeThat(new BidPlacedOnItem(_aggregateState.Id, bidderName));
        }
        public void AddBidderToAuction(AuctionId id, string bidderName)
        {
            ThrowExceptionIfAuctionIsNotOpen();

            RecordAndRealizeThat(new BidderAddedToAuction(_aggregateState.Id, bidderName));
        }