Пример #1
0
        public void StaticTextController_TextModify()
        {
            // Arrange
            int    lId   = 1;
            string lText = "Aguante todo";

            ManageTextHandler lController = new ManageTextHandler();
            StaticTextDTO     lResult;
            StaticTextDTO     lDto;

            // Act
            lDto      = lController.GetText(lId);
            lDto.Text = lText;
            lController.ModifyText(lDto);

            // Assert
            lResult = lController.GetText(lId);
            this.AssertAreEqual(lDto, lResult);
        }
Пример #2
0
        public void StaticTextController_DescriptionModify()
        {
            // Arrange
            int    lId          = 1;
            string lDescription = "vamo a calmarno";

            ManageTextHandler lController = new ManageTextHandler();
            StaticTextDTO     lResult;
            StaticTextDTO     lDto;

            // Act
            lDto             = lController.GetText(lId);
            lDto.Description = lDescription;
            lController.ModifyText(lDto);

            // Assert
            lResult = lController.GetText(lId);
            this.AssertAreEqual(lDto, lResult);
        }