public DecksController(IDeckDAL decksSqlDAL, ICardDAL cardSqlDAL, ITagDAL tagSqlDAL, IUsersDAL userSqlDAL, IAuthProvider authProvider) { this.decksSqlDAL = decksSqlDAL; this.cardSqlDAL = cardSqlDAL; this.tagSqlDAL = tagSqlDAL; this.userSqlDAL = userSqlDAL; this.authProvider = authProvider; }
public void Initialize() { tran = new TransactionScope(); dal = new DeckSqlDAL(connectionString); cardDal = new CardSqlDAL(connectionString); usersDeckCount = dal.GetDecksbyUserId(1).Count; testDeck = new Deck() { Name = "Test Deck", Description = "Test Decription", DateCreated = DateTime.Now, PublicDeck = false, ForReview = false, UserId = 1 }; testDeckId = dal.CreateDeck(testDeck); }
public AdminController(IDeckDAL decksSqlDAL, IAuthProvider authProvider) { this.decksSqlDAL = decksSqlDAL; this.authProvider = authProvider; }