public void FindMatches() { var addrRecords = new List <Dictionary <string, object> >() { new Dictionary <string, object>() { { "dp_RecordID", 12345 }, { "Address_Line_1", "321 Road Ln" }, { "Address_Line_2", "Suite 100" }, { "City", "Madison" }, { "State/Region", "OH" }, { "Postal_Code", "45454" }, { "Foreign_Country", "USA" }, { "County", "Hamilton" }, { "Longitude", "123.45" }, { "Latitude", "678.90" }, } }; var addr = new MpAddress() { Address_ID = 12345, Address_Line_1 = "321 Road Ln", Address_Line_2 = "Suite 100", City = "Madison", State = "OH", Postal_Code = "45454", Foreign_Country = "USA", County = "Hamilton", Longitude = 123.45, Latitude = 678.90 }; _ministryPlatformService.Setup(m => m.GetPageViewRecords(_addressApiPageViewId, It.IsAny <string>(), It.IsAny <string>(), string.Empty, 0)).Returns(addrRecords); var records = _fixture.FindMatches(addr); _ministryPlatformService.VerifyAll(); Assert.IsNotNull(records); Assert.AreEqual(addr.Address_ID, records[0].Address_ID); Assert.AreEqual(addr.Address_Line_1, records[0].Address_Line_1); Assert.AreEqual(addr.Address_Line_2, records[0].Address_Line_2); Assert.AreEqual(addr.City, records[0].City); Assert.AreEqual(addr.State, records[0].State); Assert.AreEqual(addr.Postal_Code, records[0].Postal_Code); Assert.AreEqual(addr.Longitude, records[0].Longitude); Assert.AreEqual(addr.Latitude, records[0].Latitude); }