Example #1
0
        public void AddOperation(OperationType operationType, Operation operation)
        {
            var successResponse = operation.Responses.Keys.Where(k => k.StartsWith("2")).Any();

            if (!successResponse)
            {
                throw new DomainParseException("An operation requires a successful response");
            }


            this.operations.Add(operationType.GetOperationTypeName(), operation);
        }