Exemple #1
0
 public void AddProvider(Provider provider, ICheckWhatInviteStrategy checkWhatInviteStrategy, IInviteStrategy inviteStrategy)
 {
     if (checkWhatInviteStrategy.CanInvite(_auction, provider))
     {
         inviteStrategy.Invite(_auction, provider);
     }
 }
 public void AddProvider(Provider provider, ICheckWhatInviteStrategy checkWhatInviteStrategy,
                         IInviteStrategy inviteStrategy, Action <Provider> callBackIfNotHas) => callBackIfNotHas(provider);
 public void AddProvider(Provider provider,
                         ICheckWhatInviteStrategy checkWhatInviteStrategy,
                         IInviteStrategy inviteStrategy) => RoundPattern.AddProvider(provider, checkWhatInviteStrategy, inviteStrategy,
                                                                                     p => Providers.Add(provider));
 public void AddProvider(Provider provider, ICheckWhatInviteStrategy checkWhatInviteStrategy, IInviteStrategy inviteStrategy
                         , Action <Provider> callBackIfNotHas) =>
 _objectWithRouds.Rounds.AddProvider(provider, checkWhatInviteStrategy, inviteStrategy);