public void EndDateGroup() { const int groupId = 1; const int reasonEndedId = 1; DateTime endDate = DateTime.Now; _ministryPlatformRestService.Setup(m => m.UsingAuthenticationToken(ApiToken)).Returns(_ministryPlatformRestService.Object); _ministryPlatformRestService.Setup( m => m.UpdateRecord("Groups", groupId, It.Is <Dictionary <string, object> >( d => d["Group_ID"].Equals(groupId) && d["End_Date"].Equals(endDate) && d["Reason_Ended"].Equals(reasonEndedId)))).Verifiable(); _fixture.EndDateGroup(groupId, endDate, reasonEndedId); _ministryPlatformRestService.VerifyAll(); }