public void GetCarModelNameById_ShouldReturnCorrectValue() { //Arrange var sut = new CarModelRepository(_mockContext.Object); var id = 3; //Act var returnedValue = sut.GetCarModelNameById(id); //Assert Assert.Equal(GetMockCarModels().Where(x => x.Id == id).FirstOrDefault().ModelName, returnedValue); }