public void ShouldCreateContactForGuestGiver() { _ministryPlatformService.Setup( mocked => mocked.CreateRecord(292, It.IsAny <Dictionary <string, object> >(), It.IsAny <string>(), false)) .Returns(123); var contactId = _fixture.CreateContactForGuestGiver("*****@*****.**", "display name", "", ""); _ministryPlatformService.Verify(mocked => mocked.CreateRecord(292, It.Is <Dictionary <string, object> >(d => d["Email_Address"].Equals("*****@*****.**") && d["Company"].Equals(false) && d["Display_Name"].Equals("display name") && d["Nickname"].Equals("display name") && d["Household_Position_ID"].Equals(1) ), It.IsAny <string>(), false)); Assert.AreEqual(123, contactId); }