first commit
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Xunit;
|
||||
using Landmark.OLA.Application.Controllers;
|
||||
|
||||
namespace Landmark.OLA.Tests.Controllers
|
||||
{
|
||||
public class LoggingTest
|
||||
{
|
||||
[Fact]
|
||||
public void Logging_Error_OK()
|
||||
{
|
||||
|
||||
var postError = new Models.ClientError() { Message = "Error Jim Robinson" };
|
||||
// arrange
|
||||
var controller = new LoggingController();
|
||||
|
||||
// act
|
||||
var result = controller.Post(postError);
|
||||
var okResult = result as OkResult;
|
||||
|
||||
// assert
|
||||
Assert.NotNull(okResult);
|
||||
Assert.Equal(200, okResult.StatusCode);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user