public CommonGameProviderController(ICommonGameActionsProvider gameActions) { var attrs = GetType().GetCustomAttributes(true); var attr = attrs.SingleOrDefault(x => x is ForGameProviderAttribute); if (attr == null) throw new RegoException("Missing ForGameProvider attribute."); GameActions = gameActions; GameActions.SetGameActionContext(new GameActionContextDetails { GameProviderId = ((ForGameProviderAttribute)attr).GameProviderId, OptionalTxRefId = true }); }
public CommonGameProviderController( ICommonGameActionsProvider gameActions, IFlycowApiClientSettingsProvider flycowApiClientSettingsProvider) { var attrs = GetType().GetCustomAttributes(true); var attr = attrs.SingleOrDefault(x => x is ForGameProviderAttribute) as ForGameProviderAttribute; //if (attr == null) // throw new RegoException("Missing ForGameProvider attribute."); FlycowApiClientSettingsProvider = flycowApiClientSettingsProvider; GameActions = gameActions; GameActions.SetGameActionContext(new GameActionContextDetails { GameProviderCode = attr == null ? string.Empty : attr.GameProviderCode, OptionalTxRefId = true, PlayerToken = GetPlayerToken(ActionContext) }); }
public MockTgpController(ICommonGameActionsProvider gameActions, IFlycowApiClientSettingsProvider flycowApiClientSettingsProvider) : base(gameActions, flycowApiClientSettingsProvider) { }
public MockSportsController(ICommonGameActionsProvider gameActions) : base(gameActions) { }
public MockCasinoController(ICommonGameActionsProvider gameActions) : base(gameActions) { }