public void TestEditInvalidBoardNullAsync() { var board = _br.GetSingleAsync(1).Result; board.Name = null; board.Discription = null; try { _br.EditAsync(board); } catch (Exception ex) { Assert.IsTrue(ex is DbEntityValidationException); } }
public void TestEditInvalidBoardNullAsync() { var board = _br.GetSingleAsync(1).Result; board.Name = null; board.Discription = null; try { _br.EditAsync(board); } catch (Exception ex) { Assert.IsTrue(ex is DbEntityValidationException); } }