public void TestMethodId1() { // arange int sizeExpected = 12; int priceExpected = 3100; int id = 3; // act Bike bike = handler.GetFromId(id); // assert Assert.AreEqual(sizeExpected, bike.Size); Assert.AreEqual(priceExpected, bike.Price); }
public Bike Get(int id) { return(handler.GetFromId(id)); }