public void TestAddInvalidBoardSameNameAsync() { var uniqueboard = _br.GetSingleAsync(1).Result; var board = new Board { Name = uniqueboard.Name, Discription = "teste repeated board" }; try { _br.AddAsync(board); } catch (Exception ex) { Assert.IsTrue(ex is DbEntityValidationException); } }