Skip to content

Commit 0318bd7

Browse files
azabbasiprmathur-microsoft
authored andcommitted
feat(tests): Changes to fix tests and make sure we can run them successfully. (#12819)
1 parent 8bdd664 commit 0318bd7

File tree

5 files changed

+53
-419
lines changed

5 files changed

+53
-419
lines changed

sdk/iot/Azure.Iot.Hub.Service/api/Azure.Iot.Hub.Service.netstandard2.0.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ public IoTHubServiceClient(string connectionString) { }
5454
public IoTHubServiceClient(string connectionString, Azure.Iot.Hub.Service.IoTHubServiceClientOptions options) { }
5555
public IoTHubServiceClient(System.Uri endpoint, Azure.Core.TokenCredential credential) { }
5656
public IoTHubServiceClient(System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.Iot.Hub.Service.IoTHubServiceClientOptions options) { }
57-
public Azure.Iot.Hub.Service.DevicesClient Devices { get { throw null; } }
58-
public Azure.Iot.Hub.Service.FilesClient Files { get { throw null; } }
59-
public Azure.Iot.Hub.Service.JobsClient Jobs { get { throw null; } }
60-
public Azure.Iot.Hub.Service.CloudToDeviceMessagesClient Messages { get { throw null; } }
61-
public Azure.Iot.Hub.Service.ModulesClient Modules { get { throw null; } }
62-
public Azure.Iot.Hub.Service.StatisticsClient Statistics { get { throw null; } }
57+
public virtual Azure.Iot.Hub.Service.DevicesClient Devices { get { throw null; } }
58+
public virtual Azure.Iot.Hub.Service.FilesClient Files { get { throw null; } }
59+
public virtual Azure.Iot.Hub.Service.JobsClient Jobs { get { throw null; } }
60+
public virtual Azure.Iot.Hub.Service.CloudToDeviceMessagesClient Messages { get { throw null; } }
61+
public virtual Azure.Iot.Hub.Service.ModulesClient Modules { get { throw null; } }
62+
public virtual Azure.Iot.Hub.Service.StatisticsClient Statistics { get { throw null; } }
6363
}
6464
public partial class IoTHubServiceClientOptions : Azure.Core.ClientOptions
6565
{

sdk/iot/Azure.Iot.Hub.Service/src/IoTHubServiceClient.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,32 +23,32 @@ public class IoTHubServiceClient
2323
/// <summary>
2424
/// place holder for Devices
2525
/// </summary>
26-
public DevicesClient Devices { get; private set; }
26+
public virtual DevicesClient Devices { get; private set; }
2727

2828
/// <summary>
2929
/// place holder for Modules
3030
/// </summary>
31-
public ModulesClient Modules { get; private set; }
31+
public virtual ModulesClient Modules { get; private set; }
3232

3333
/// <summary>
3434
/// place holder for Statistics
3535
/// </summary>
36-
public StatisticsClient Statistics { get; private set; }
36+
public virtual StatisticsClient Statistics { get; private set; }
3737

3838
/// <summary>
3939
/// place holder for Messages
4040
/// </summary>
41-
public CloudToDeviceMessagesClient Messages { get; private set; }
41+
public virtual CloudToDeviceMessagesClient Messages { get; private set; }
4242

4343
/// <summary>
4444
/// place holder for Files
4545
/// </summary>
46-
public FilesClient Files { get; private set; }
46+
public virtual FilesClient Files { get; private set; }
4747

4848
/// <summary>
4949
/// place holder for Jobs
5050
/// </summary>
51-
public JobsClient Jobs { get; private set; }
51+
public virtual JobsClient Jobs { get; private set; }
5252

5353
/// <summary>
5454
/// Initializes a new instance of the <see cref="IoTHubServiceClient"/> class.

0 commit comments

Comments
 (0)