diff --git a/Sources/LetSee/Core/Services/CategorisedMocks.swift b/Sources/LetSee/Core/Services/CategorisedMocks.swift index ae8a129..3654f37 100644 --- a/Sources/LetSee/Core/Services/CategorisedMocks.swift +++ b/Sources/LetSee/Core/Services/CategorisedMocks.swift @@ -12,6 +12,11 @@ public struct CategorisedMocks: Hashable { /// List of mocks belonging to the category public var mocks: [LetSeeMock] + + public init(category: LetSeeMock.Category, mocks: [LetSeeMock]) { + self.category = category + self.mocks = mocks + } } public typealias RequestToMockMapper = ((_: URL, _ mocks: Dictionary>) -> CategorisedMocks?)