let list = [Int](0...Int.random(in: 1...100)) .map({ _ in ColorModel(text: .random(), color: .random) }) completion(.success(list)) case .single: completion(.success([.init(text: .random(), color: .random)])) case .empty: completion(.success([])) case .error: completion(.failure(MockError.mockError(message: "This is Error(Mock)”))) …… }