public void findByUserId() { List <Xe> xes = xeRepository.findByUserId(1); Xe xe = xes[0]; Assert.AreEqual(1, xes.Count()); Assert.AreEqual("123123", xe.SoKhung); Assert.AreEqual("221ADW", xe.SoMay); Assert.AreEqual(40000000, xe.GiaTien); //Assert.AreEqual(1, xe.LoaiXe_id); //Assert.AreEqual(1, xe.NguoiDung_id); Assert.AreEqual("81B1-32135", xe.BienSo); }
public List <Xe> GetByUserId(int UserId) { return(xeRepository.findByUserId(UserId)); }