summaryrefslogtreecommitdiff
path: root/SmartDeviceLinkTests/TestUtilities/SDLSpecUtilities.m
blob: 68259990db9f49f8d356805d3cc76248b01bd225 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//
//  SDLSpecUtilities.m
//  SmartDeviceLinkTests
//
//  Created by Joel Fischer on 2/8/18.
//  Copyright © 2018 smartdevicelink. All rights reserved.
//

#import "SDLSpecUtilities.h"

#import "NSNumber+NumberType.h"
#import "SDLAddCommandResponse.h"

#import "TestResponse.h"

@implementation SDLSpecUtilities

+ (TestResponse *)addCommandRPCResponseWithCorrelationId:(NSNumber<SDLInt> *)correlationId {
    SDLAddCommandResponse *response = [[SDLAddCommandResponse alloc] init];
    response.success = @YES;
    response.correlationID = correlationId;

    TestResponse *testResponse = [[TestResponse alloc] initWithResponse:response error:nil];

    return testResponse;
}

@end