31 lines
860 B
C#
31 lines
860 B
C#
using System.Web.Http.Results;
|
|
using LCU.API.Internal.CoreSoapApiWrapper.Controllers;
|
|
using LCU.API.Internal.CoreSoapApiWrapper.Models;
|
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
|
|
namespace LCU.API.Internal.CoreSoapApiWrapperTest.Controllers
|
|
{
|
|
[TestClass]
|
|
public class StatusControllerTest
|
|
{
|
|
private StatusController _controller;
|
|
|
|
public StatusControllerTest()
|
|
{
|
|
_controller = new StatusController();
|
|
}
|
|
|
|
|
|
[TestMethod]
|
|
public void Get_OK()
|
|
{
|
|
var result = _controller.Get();
|
|
|
|
Assert.IsNotNull(result);
|
|
|
|
var okResult = result as OkNegotiatedContentResult<EnvironmentView>;
|
|
Assert.IsNotNull(okResult);
|
|
Assert.AreEqual("LCU.API.Internal.CoreSoapApiWrapper", okResult.Content.Application);
|
|
}
|
|
}
|
|
} |