/// <inheritdoc /> public void ErrorReasonGroups(ICaller caller) { using IDealData data = InstanceFactory.GetInstance <IDealData>(); if (data.AnyErrorReasonGroup()) { return; } IDictionary <string, string> errorReasonGroupDetails = new Dictionary <string, string> { { "SET", "Set" }, { "PACK", "Pack" } }; foreach (KeyValuePair <string, string> errorReasonGroupDetail in errorReasonGroupDetails) { IErrorReasonGroup errorReasonGroup = new ErrorReasonGroup( id: Guid.NewGuid(), code: errorReasonGroupDetail.Key, name: errorReasonGroupDetail.Value); data.CreateErrorReasonGroup(errorReasonGroup); } }