mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-15 14:31:28 +00:00
28 lines
676 B
C#
28 lines
676 B
C#
using System.Security.Cryptography.X509Certificates;
|
|
using NUnit.Framework;
|
|
using TestNinja.Fundamentals;
|
|
|
|
namespace TestNinja.UnitTests.UnitTests
|
|
{
|
|
[TestFixture]
|
|
class CustomerControllerTests
|
|
{
|
|
private CustomerController _customerController;
|
|
|
|
[SetUp]
|
|
public void SetUp()
|
|
{
|
|
_customerController = new CustomerController();
|
|
}
|
|
|
|
[Test]
|
|
public void GetCustomer_IfIdIsGreaterThenZero_ReturnOk()
|
|
{
|
|
var result = _customerController.GetCustomer(4);
|
|
Assert.That(result, Is.InstanceOf<ActionResult>());
|
|
Assert.That(result, Is.TypeOf<Ok>());
|
|
|
|
}
|
|
}
|
|
}
|