Skip to content

Commit

Permalink
Fix unit test ImportDeviceListWrongFileFormatShouldThrowInternalServe…
Browse files Browse the repository at this point in the history
…rErrorExceptionAsync #1628 (#1709)
  • Loading branch information
hocinehacherouf authored Jan 13, 2023
1 parent 4162dd7 commit a97b383
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ namespace AzureIoTHub.Portal.Tests.Unit.Server.Managers
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using AutoFixture;
using AzureIoTHub.Portal.Application.Managers;
using AzureIoTHub.Portal.Application.Services;
using AzureIoTHub.Portal.Domain.Entities;
Expand Down Expand Up @@ -211,7 +212,8 @@ public void ExportTemplateFileLoRaEnabledShouldWriteStreamAndDisplayLoRaSpecific
public async Task ImportDeviceListWrongFileFormatShouldThrowInternalServerErrorExceptionAsync()
{
// Arrange
using var stream = new MemoryStream(Guid.NewGuid().ToByteArray());
var input = Encoding.UTF8.GetBytes(Fixture.Create<string>());
using var stream = new MemoryStream(input);

// Act
var act = () => this.exportManager.ImportDeviceList(stream);
Expand Down

0 comments on commit a97b383

Please sign in to comment.