Skip to content

Commit

Permalink
Fix #1472 - Remove DeviceModelCommandManager class (#1475)
Browse files Browse the repository at this point in the history
  • Loading branch information
kbeaugrand authored Oct 28, 2022
1 parent bf8c873 commit 393c73c
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 232 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@

namespace AzureIoTHub.Portal.Infrastructure.Factories
{
using System;
using Azure;
using Azure.Data.Tables;
using AzureIoTHub.Portal.Domain;
using AzureIoTHub.Portal.Domain.Exceptions;

public class TableClientFactory : ITableClientFactory
{
Expand Down

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions src/AzureIoTHub.Portal.Server/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ namespace AzureIoTHub.Portal.Server
using Hellang.Middleware.ProblemDetails.Mvc;
using Identity;
using Infrastructure;
using Infrastructure.Factories;
using Infrastructure.Repositories;
using Infrastructure.Seeds;
using Jobs;
Expand Down Expand Up @@ -117,11 +116,9 @@ public void ConfigureServices(IServiceCollection services)

_ = services.AddTransient<IProvisioningServiceClient, ProvisioningServiceClientWrapper>();
_ = services.AddTransient(_ => new BlobServiceClient(configuration.StorageAccountConnectionString));
_ = services.AddTransient<ITableClientFactory>(_ => new TableClientFactory(configuration.StorageAccountConnectionString));
_ = services.AddTransient<IDeviceModelImageManager, DeviceModelImageManager>();
_ = services.AddTransient<IConcentratorTwinMapper, ConcentratorTwinMapper>();
_ = services.AddTransient<IDeviceModelCommandMapper, DeviceModelCommandMapper>();
_ = services.AddTransient<IDeviceModelCommandsManager, DeviceModelCommandsManager>();
_ = services.AddTransient<IDeviceProvisioningServiceManager, DeviceProvisioningServiceManager>();
_ = services.AddTransient<IRouterConfigManager, RouterConfigManager>();

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ public class DeviceTwinMapperTests
private MockRepository mockRepository;

private Mock<IDeviceModelImageManager> mockDeviceModelImageManager;
private Mock<IDeviceModelCommandsManager> mockDeviceModelCommandsManager;
private Mock<ITableClientFactory> mockTableClientFactory;

[SetUp]
Expand All @@ -30,7 +29,6 @@ public void SetUp()
this.mockRepository = new MockRepository(MockBehavior.Strict);

this.mockDeviceModelImageManager = this.mockRepository.Create<IDeviceModelImageManager>();
this.mockDeviceModelCommandsManager = this.mockRepository.Create<IDeviceModelCommandsManager>();
this.mockTableClientFactory = this.mockRepository.Create<ITableClientFactory>();
}

Expand Down

0 comments on commit 393c73c

Please sign in to comment.