public void ValidDeleteGenericRecordTests(ResourceId resource, ValidDeleteGenericRecord condition)
        {
            var recordHandler = new GenericRecordManager();
            var propDic       = ValidDeleteGenericRecordRequest(resource, condition);
            var requestDic    = new KeyValuePair <string, List <Dictionary <string, object> > >("data", new List <Dictionary <string, object> >()
            {
                propDic
            });

            var result   = recordHandler.DeleteRecord <DeleteGenericRecordResponse.Success>(requestDic, HttpMethod.Delete);
            var expected = Common.CheckExistedRecordId(resource, result.Result.Ids.SingleOrDefault()).ToString();

            PrAssert.That(result, PrIs.SuccessfulResponse().And.HttpCode(System.Net.HttpStatusCode.OK));
            PrAssert.That(result.IsSuccess, expected);
        }
        private static Dictionary <string, object> ValidDeleteGenericRecordRequest(ResourceId resource, ValidDeleteGenericRecord condition)
        {
            var data = new Dictionary <string, object>()
            {
                ["resource"] = resource.GetHashCode()
            };

            ValidDeleteGenericRecordMapper[condition](resource, new HrbcRecordCreator[] { FirstSystemRecord, SecondSystemRecord, FirstUserRecords, SecondUserRecords }, data);

            return(data);
        }