Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
 public AdminController(IDeckDAL decksSqlDAL, IAuthProvider authProvider)
 {
     this.decksSqlDAL  = decksSqlDAL;
     this.authProvider = authProvider;
 }