Exemplo n.º 1
0
        public void LayTaiKhoan_TestStatusResponse()
        {
            //Act
            IHttpActionResult actionResult = controller.LayTaiKhoan(132);
            var actual_result = actionResult as OkNegotiatedContentResult <UserMasterDTO>;

            //Assert
            Assert.IsNotNull(actionResult);
            Assert.IsNotNull(actual_result.Content);
            Assert.AreEqual("anhnguyenduc", actual_result.Content.UserName);
        }