Exemple #1
0
        public void ArchiveOrder_With_Null_As_Id()
        {
            // Arrange
            int?i = null;
            // Act
            var result = _orderController.ArchiveOrder(i) as HttpStatusCodeResult;

            // Assert
            Assert.AreEqual(System.Net.HttpStatusCode.BadRequest, (System.Net.HttpStatusCode)result.StatusCode);
        }