private void CreateAndDeliveryMultipleInstructions(CacheInstructionService sut)
 {
     for (int i = 0; i < 3; i++)
     {
         List <RefreshInstruction> instructions = CreateInstructions();
         sut.DeliverInstructions(instructions, i == 2 ? LocalIdentity : AlternateIdentity);
     }
 }
        protected override void DeliverRemote(
            ICacheRefresher refresher,
            MessageType messageType,
            IEnumerable <object> ids = null,
            string json = null)
        {
            var idsA = ids?.ToArray();

            if (GetArrayType(idsA, out Type idType) == false)
            {
                throw new ArgumentException("All items must be of the same type, either int or Guid.", nameof(ids));
            }

            IEnumerable <RefreshInstruction> instructions = RefreshInstruction.GetInstructions(refresher, JsonSerializer, messageType, idsA, idType, json);

            CacheInstructionService.DeliverInstructions(instructions, LocalIdentity);
        }