public void EqualsObjectCastTest() { string businessName = "test-businessName"; BusinessSearchRequestBusinessSearchModel businessSearchRequestBusinessSearchModel = new BusinessSearchRequestBusinessSearchModel(businessName: businessName); object obj = new BusinessSearchRequestBusinessSearchModel(businessName: businessName); Assert.True(businessSearchRequestBusinessSearchModel.Equals(obj)); }
public void EqualsTest() { string businessName = "test-businessName"; BusinessSearchRequestBusinessSearchModel businessName1 = new BusinessSearchRequestBusinessSearchModel(businessName: businessName); Assert.Equal(businessName1, businessName1); Assert.Equal(businessName1, new BusinessSearchRequestBusinessSearchModel(businessName: businessName)); Assert.NotEqual(businessName1, new BusinessSearchRequestBusinessSearchModel(businessName: businessName + "1")); Assert.False(businessName1.Equals(null)); }