Esempio n. 1
0
        public override StatusAuction <Auction> UpdateProviders(IProviders providers)
        {
            if (providers.Get().Count == 2)
            {
                Auction.Providers = providers;
            }

            return(new StatusAuctionNew(Auction));
        }
        public override void UpdateProviders(IProviders providers)
        {
            var round = GetActualRound();

            if (round != null)
            {
                //Null Object Pattern
                var roundAuctionStrategyFactory = new RoundAuctionStrategyFactory();
                var updateProviderStrategy      = roundAuctionStrategyFactory.Make <UpdateProvidersRoundAuctionParameters>(StrategyTypeEnum.UpdateProvider);
                round.Update(updateProviderStrategy, new UpdateProvidersRoundAuctionParameters(new Providers(providers.Get()), Auction));
            }
        }
Esempio n. 3
0
 public abstract void UpdateProviders(IProviders providers);
 public UpdateProviderParameter(IProviders providers)
 {
     Providers = providers;
 }
Esempio n. 5
0
 public override StatusAuction <Auction> UpdateProviders(IProviders providers)
 {
     return(this);
 }
Esempio n. 6
0
 public abstract StatusAuction <TAuction> UpdateProviders(IProviders providers);
Esempio n. 7
0
        public Round(Auction auction, IProviders providers, AuctionProviders providersToAdd)
        {
            Auction = auction;

            Providers.Add(providersToAdd.All());
        }
Esempio n. 8
0
 public override void UpdateProviders(IProviders providers)
 {
     Auction.Providers = providers;
 }
Esempio n. 9
0
 public MarketProvider(IProviders providers, ITransactionDAO transactionDAO)
 {
     this._providers      = providers;
     this._transactionDAO = transactionDAO;
 }