public void ItemRequest_GetHasCode_ItemNull() { var itemRequest = new ItemRequest { }; var result = itemRequest.GetHashCode(); Assert.AreEqual(0, result); }
public void ItemRequest_GetHasCode() { var valueInt = 99; var itemRequest = new ItemRequest { Item = new Item { Id = valueInt } }; var hashZero = valueInt.GetHashCode(); var result = itemRequest.GetHashCode(); Assert.AreEqual(hashZero, result); }