Exemplo n.º 1
0
        public void ResultLog_Read_InValid_Data_Bogus_Should_Fail()
        {
            // Arrange
            var myController = new ResultLogController();

            // Act
            var result = myController.Read("bogus");

            // Assert
            Assert.IsNotNull(result);
        }
        public void ResultLog_Read_Valid_Data_Should_Pass()
        {
            // Arrange
            var myController = new ResultLogController();
            var myData       = BiliWeb.Backend.ResultLogBackend.Instance.Index().FirstOrDefault();

            // Act
            var result = myController.Read(myData.ID) as ViewResult;

            // Assert
            Assert.IsNotNull(result.Model);
        }