public void MyTestInitialize() { EffortProviderFactory.ResetDb(); EntityConnection connection = EntityConnectionFactory.CreateTransient("name=ISSEntities2"); //var connection = DbConnectionFactory.CreateTransient(); _context = new ISSEntities2(connection); _repository = new RepoUserDB(_context); }
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; }
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>(); }