public ActionContext(IExpectable expectable, ItemsCache itemsCache) { Expectable = expectable ?? throw new ArgumentNullException(nameof(expectable)); ItemsCache = itemsCache ?? throw new ArgumentNullException(nameof(itemsCache)); }
/// <summary> /// Merge a dictionary of keys/values with the current dictionary. /// </summary> /// <param name="dict">An object whose properties are used as the new keys/values for the update.</param> /// <param name="replace">True if conflicting parameters should replace the existing ones, false otherwise.</param> /// <returns>The updated Parameter dictionary.</returns> public ItemsCache Merge(object dict, bool replace) { var newDict = new ItemsCache(dict); return(Merge(newDict, replace)); }