Пример #1
0
        public void Suppliers_GetSUPPLIER_ShouldReturnsSupplierById()
        {
            //Arrange
            //Initialize();

            //Act
            OkNegotiatedContentResult <SUPPLIER> response = supplierController.GetSUPPLIER("1") as OkNegotiatedContentResult <SUPPLIER>;
            SUPPLIER supplier = response.Content;

            //Assert
            Assert.IsNotNull(supplier);
            Assert.AreEqual("1", supplier.SUPLNO);
            Assert.AreEqual("samsung", supplier.SUPLNAME);
            Assert.AreEqual("South Korea", supplier.SUPLADDR);
        }