public void Can_set_and_get_licensee_filter_selections() { var licenseeIds = GetGuids(); _adminCommands.SetLicenseeFilterSelections(licenseeIds); var licenseeFilterSelections = _adminQueries.GetLicenseeFilterSelections().ToArray(); Assert.That(licenseeFilterSelections.Length, Is.EqualTo(licenseeIds.Length)); Assert.That(licenseeFilterSelections.All(licenseeIds.Contains), Is.True); }
public IHttpActionResult SaveLicenseeFilterSelection(LicenseeFilterSelectionData data) { _adminCommands.SetLicenseeFilterSelections(data.Licensees); return(Ok(new { result = "success" })); }