-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #811 - Add available frequency plans from API and remove hardcode…
…d frequency plans from Web pages
- Loading branch information
1 parent
74a6ab8
commit 169f1a5
Showing
11 changed files
with
209 additions
and
41 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
...Portal.Server.Tests.Unit/Controllers/v1.0/LoRaWAN/LoRaWANFrequencyPlansControllerTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// Copyright (c) CGI France. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
namespace AzureIoTHub.Portal.Server.Tests.Unit.Controllers.V10.LoRaWAN | ||
{ | ||
using System.Collections.Generic; | ||
using AzureIoTHub.Portal.Server.Controllers.V10.LoRaWAN; | ||
using AzureIoTHub.Portal.Shared.Models.v10.LoRaWAN; | ||
using Microsoft.AspNetCore.Mvc; | ||
using NUnit.Framework; | ||
|
||
[TestFixture] | ||
public class LoRaWANFrequencyPlansControllerTests : BackendUnitTest | ||
{ | ||
private static LoRaWANFrequencyPlansController CreateLoRaWANFrequencyPlansController() | ||
{ | ||
return new LoRaWANFrequencyPlansController(); | ||
} | ||
|
||
[Test] | ||
public void GetFrequencyPlans() | ||
{ | ||
// Arrange | ||
var loRaWANFrequencyPlansController = CreateLoRaWANFrequencyPlansController(); | ||
|
||
// Act | ||
var result = loRaWANFrequencyPlansController.GetFrequencyPlans(); | ||
|
||
// Assert | ||
Assert.NotNull(result); | ||
Assert.IsAssignableFrom<ActionResult<IEnumerable<FrequencyPlan>>>(result); | ||
base.MockRepository.VerifyAll(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.