示例#1
0
        public void MyTestInitialize()
        {
            EffortProviderFactory.ResetDb();
            EntityConnection connection = EntityConnectionFactory.CreateTransient("name=ISSEntities2");

            //var connection = DbConnectionFactory.CreateTransient();
            _context    = new ISSEntities2(connection);
            _repository = new RepoUserDB(_context);
        }
示例#2
0
 public ServerImplementation(RepoUserDB repoUser, RepoAvailableRoomDB repoAvailableRoom, RepoConference repoConference, RepoMessageDB repoMessage, RepoPaperDB repoPaper, RepoParticipantDB repoParticipant, RepoPayment repoPayment, RepoSessionDB repoSession)
 {
     this.repoUser          = repoUser;
     this.repoAvailableRoom = repoAvailableRoom;
     this.repoConference    = repoConference;
     this.repoMessage       = repoMessage;
     this.repoPaper         = repoPaper;
     this.repoParticipant   = repoParticipant;
     this.repoPayment       = repoPayment;
     this.repoSession       = repoSession;
 }
示例#3
0
 public ServerImplementation(RepoUserDB repoUser, RepoAvailableRoomDB repoAvailableRoom, RepoConference repoConference, RepoMessageDB repoMessage, RepoPaperDB repoPaper, RepoParticipantDB repoParticipant, RepoPayment repoPayment, RepoSessionDB repoSession)
 {
     this.repoUser          = repoUser;
     this.repoAvailableRoom = repoAvailableRoom;
     this.repoConference    = repoConference;
     this.repoMessage       = repoMessage;
     this.repoPaper         = repoPaper;
     this.repoParticipant   = repoParticipant;
     this.repoPayment       = repoPayment;
     this.repoSession       = repoSession;
     loggedClients          = new Dictionary <String, IClient>();
 }