public void InsertShouldReturnInsertId()
        {
            //BoardGamesController boardGames = new BoardGamesController();
            System.Data.Entity.Database.SetInitializer(new BoardGameDatabaseInitializer());
            BoardGameContext context = new BoardGameContext();
            //context.Database.Initialize(true);
            IBoardGameRepository _boardGame = new BoardGameRepository(context);

            BoardGame boardGame = new BoardGame()
            {
                Id = 0,
                Name = "Unit Test 01",
                Year = 2015,
                Category = "Testing Category",
                Description = "Description test.",
                Players = "1-10",
                Image = ""
            };

            //var request = new IHttpActionResult();

            //request = boardGames.PostBoardGame(boardGame);

            //IHttpActionResult

            //int id = _boardGame.InsertBoardGame(boardGame);
            //int id = boardGames.PostBoardGame(boardGame);
            //Assert.AreNotEqual(0, id);
        }
 public BoardGameRepository(BoardGameContext context)
 {
     this.context = context;
 }
 public BoardGameRepository(BoardGameContext context)
 {
     this.context = context;
 }