public void SetupDependencies(IDependencyConfigurator injector, string prefix, string defaultKey)
 {
     injector.SetupDependency<CreateAccountPresentation, ICreateAccountPresentation>(prefix + defaultKey);
       injector.SetupDependency<LoginPresentation, ILoginPresentation>(prefix + defaultKey);
       injector.SetupDependency<HomePresentation, IHomePresentation>(prefix + defaultKey);
       injector.SetupDependency<StatisticsPresentation, IStatisticsPresentation>(prefix + defaultKey);
       //injector.SetupDependency<LogoutButtonPresentation, ILogoutButtonPresentation>(prefix + defaultKey);
 }
 public void SetupDependencies(IDependencyConfigurator injector, string prefix, string defaultKey)
 {
     injector.SetupDependency<CreateAccountPresentation, ICreateAccountPresentation>(prefix + defaultKey);
     injector.SetupDependency<LoginPresentation, ILoginPresentation>(prefix + defaultKey);
     injector.SetupDependency<HomePresentation, IHomePresentation>(prefix + defaultKey);
     injector.SetupDependency<StatisticsPresentation, IStatisticsPresentation>(prefix + defaultKey);
     injector.SetupDependency<LogoutButtonPresentation, ILogoutButtonPresentation>(prefix + defaultKey);
     injector.SetupDependency<RoomPresentation, IRoomPresentation>(prefix + defaultKey);
     injector.SetupDependency<RoomUserDTO, IRoomUserDTO>(prefix + defaultKey);
     injector.SetupDependency<BattlePresentation, IBattlePresentation>(prefix + defaultKey);
     injector.SetupDependency<BattleCardPresentation, IBattleCardPresentation>(prefix + defaultKey);
     injector.SetupDependency<BattlePlayerInfo, IBattlePlayerPresentation>(prefix + defaultKey);
 }
        public void SetupDependencies(IDependencyConfigurator injector, string prefix, string defaultKey)
        {
            injector.SetupSingleton<ICardContainer>(() => new CardContainer(), prefix + defaultKey);
            injector.SetupSingleton<IAccountManager>(() => new AccountManager(), prefix + defaultKey);
            injector.SetupSingleton<IRoomsManager>(() => new RoomsManager(), prefix + defaultKey);
            injector.SetupSingleton<IUserStatsManager>(() => new UserStatsManager(), prefix + defaultKey);
            injector.SetupSingleton<IRankingsManager>(() => new RankingsManager(), prefix + defaultKey);

            injector.SetupDependency<OperationResult, IOperationResult>(prefix + defaultKey);
            injector.SetupDependency(typeof(OperationResult<>), typeof(IOperationResult<>), prefix + defaultKey);
            injector.SetupDependency<Challenge, IChallenge>(prefix + defaultKey);
            injector.SetupDependency<Challenge, IIssuedChallenge>(prefix + defaultKey);
            injector.SetupDependency<Challenge, IReceivedChallenge>(prefix + defaultKey);
            injector.SetupDependency<RoomUser, IRoomUser>(prefix + defaultKey);
            injector.SetupDependency<UserSession, IUserSession>(prefix + defaultKey);
            injector.SetupDependency<Session, ISession>(prefix + defaultKey);
            injector.SetupDependency<BattleRequest, IBattleRequest>(prefix + defaultKey);
            injector.SetupDependency<UserStats, IUserStats>(prefix + defaultKey);
        }
        public void SetupDependencies(IDependencyConfigurator injector, string prefix, string defaultKey)
        {
            var connBuilder = new SqlConnectionStringBuilder()
              {
            InitialCatalog = "CardGame",
            IntegratedSecurity = true,
            MultipleActiveResultSets = true,
            ApplicationName = "EntityFramework"
              };
              //connBuilder.DataSource = "MSSQL";

              injector.SetupSingleton<ILog>(new Log(), prefix + defaultKey);
              injector.SetupSingleton<IMessaging>(new Messaging(), prefix + defaultKey);
              injector.SetupDependency<MessageQueue, IMessageQueue>(prefix + defaultKey);
              //injector.PutConfiguration("model-args", new object[] { connBuilder.ToString() });
              injector.PutConfiguration("model-args", new object[] { "metadata=res://*/Model.DomainDataModel.csdl|res://*/Model.DomainDataModel.ssdl|res://*/Model.DomainDataModel.msl;provider=System.Data.SqlClient;provider connection string=\"data source=(local);initial catalog=CardGame;integrated security=True;multipleactiveresultsets=True;App=EntityFramework\"" });
        }