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); }
public void StaticTextController_TitleModify() { // Arrange int lId = 1; string lTitle = "Texto 100"; ManageTextHandler lController = new ManageTextHandler(); StaticTextDTO lResult; StaticTextDTO lDto; // Act lDto = lController.GetText(lId); lDto.Title = lTitle; lController.ModifyText(lDto); // Assert lResult = lController.GetText(lId); this.AssertAreEqual(lDto, lResult); }