protected LoaiXe GetFirstLoaiXe() { IList <LoaiXe> entityList = manager.GetAll(1); if (entityList.Count == 0) { Assert.Fail("All tables must have at least one row for unit tests to succeed."); } return(entityList[0]); }
protected Model CreateNewModel() { Model entity = new Model(); entity.TenModel = "T"; entity.PhuKien = "Te"; entity.GiaBan = 16; entity.GhiChu = "Test Test "; ILoaiXeManager loaiXeManager = managerFactory.GetLoaiXeManager(); entity.LoaiXeMember = loaiXeManager.GetAll(1)[0]; return(entity); }