public void EqualsObjectCastTest()
        {
            string businessName = "test-businessName";
            BusinessSearchRequestBusinessSearchModel businessSearchRequestBusinessSearchModel = new BusinessSearchRequestBusinessSearchModel(businessName: businessName);
            object obj = new BusinessSearchRequestBusinessSearchModel(businessName: businessName);

            Assert.True(businessSearchRequestBusinessSearchModel.Equals(obj));
        }
Exemplo n.º 2
0
        public void BusinessTest()
        {
            BusinessSearchRequestBusinessSearchModel business = new BusinessSearchRequestBusinessSearchModel();

            businessSearchRequest.Business = business;

            Assert.Equal(business, businessSearchRequest.Business);
            Assert.Equal(business, (new BusinessSearchRequest(countryCode: "test-countryCode", business: business)).Business);
        }
        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));
        }
        public void GetHashcodeTest()
        {
            BusinessSearchRequestBusinessSearchModel businessSearchRequestBusinessSearchModel1 = new BusinessSearchRequestBusinessSearchModel();

            businessSearchRequestBusinessSearchModel1.BusinessName = "test-businessName";
            businessSearchRequestBusinessSearchModel1.Website      = "test-website";
            businessSearchRequestBusinessSearchModel1.JurisdictionOfIncorporation = "test-jurisdictionOfIncorporation";
            businessSearchRequestBusinessSearchModel1.DUNSNumber = "test-dUNSNumber";
            businessSearchRequestBusinessSearchModel1.Location   = new Location(city: "test-city");

            BusinessSearchRequestBusinessSearchModel businessSearchRequestBusinessSearchModel2 = new BusinessSearchRequestBusinessSearchModel();

            businessSearchRequestBusinessSearchModel2.BusinessName = "test-businessName";
            businessSearchRequestBusinessSearchModel2.Website      = "test-website";
            businessSearchRequestBusinessSearchModel2.JurisdictionOfIncorporation = "test-jurisdictionOfIncorporation";
            businessSearchRequestBusinessSearchModel2.DUNSNumber = "test-dUNSNumber";
            businessSearchRequestBusinessSearchModel2.Location   = new Location(city: "test-city");
            Assert.Equal(businessSearchRequestBusinessSearchModel1.GetHashCode(), businessSearchRequestBusinessSearchModel2.GetHashCode());
        }
 public BusinessSearchRequestBusinessSearchModelTests()
 {
     businessSearchRequestBusinessSearchModel = new BusinessSearchRequestBusinessSearchModel();
 }