@@ -23,9 +23,9 @@ public void ShouldCreateNewBlogPostWhenValidDataGiven()
2323 BlogPost blogPost = null ;
2424 var cut = RenderComponent < CreateNewBlogPost > (
2525 p => p . Add ( c => c . OnBlogPostCreated , bp => blogPost = bp ) ) ;
26- cut . Find ( "#title" ) . Change ( "My Title" ) ;
27- cut . Find ( "#short" ) . Change ( "My short Description" ) ;
28- cut . Find ( "#content" ) . Change ( "My content" ) ;
26+ cut . Find ( "#title" ) . Input ( "My Title" ) ;
27+ cut . Find ( "#short" ) . Input ( "My short Description" ) ;
28+ cut . Find ( "#content" ) . Input ( "My content" ) ;
2929 cut . Find ( "#preview" ) . Change ( "My preview url" ) ;
3030 cut . Find ( "#published" ) . Change ( false ) ;
3131 cut . Find ( "#tags" ) . Change ( "Tag1,Tag2,Tag3" ) ;
@@ -57,7 +57,7 @@ public void ShouldFillGivenBlogPost()
5757 p =>
5858 p . Add ( c => c . OnBlogPostCreated , bp => blogPostFromComponent = bp )
5959 . Add ( c => c . BlogPost , blogPost ) ) ;
60- cut . Find ( "#title" ) . Change ( "My new Title" ) ;
60+ cut . Find ( "#title" ) . Input ( "My new Title" ) ;
6161
6262 cut . Find ( "form" ) . Submit ( ) ;
6363
@@ -77,9 +77,9 @@ public void ShouldNotDeleteModelWhenSet()
7777 var cut = RenderComponent < CreateNewBlogPost > (
7878 p => p . Add ( c => c . ClearAfterCreated , true )
7979 . Add ( c => c . OnBlogPostCreated , post => blogPost = post ) ) ;
80- cut . Find ( "#title" ) . Change ( "My Title" ) ;
81- cut . Find ( "#short" ) . Change ( "My short Description" ) ;
82- cut . Find ( "#content" ) . Change ( "My content" ) ;
80+ cut . Find ( "#title" ) . Input ( "My Title" ) ;
81+ cut . Find ( "#short" ) . Input ( "My short Description" ) ;
82+ cut . Find ( "#content" ) . Input ( "My content" ) ;
8383 cut . Find ( "#preview" ) . Change ( "My preview url" ) ;
8484 cut . Find ( "#tags" ) . Change ( "Tag1,Tag2,Tag3" ) ;
8585 cut . Find ( "form" ) . Submit ( ) ;
@@ -97,9 +97,9 @@ public void ShouldNotDeleteModelWhenNotSet()
9797 var cut = RenderComponent < CreateNewBlogPost > (
9898 p => p . Add ( c => c . ClearAfterCreated , false )
9999 . Add ( c => c . OnBlogPostCreated , post => blogPost = post ) ) ;
100- cut . Find ( "#title" ) . Change ( "My Title" ) ;
101- cut . Find ( "#short" ) . Change ( "My short Description" ) ;
102- cut . Find ( "#content" ) . Change ( "My content" ) ;
100+ cut . Find ( "#title" ) . Input ( "My Title" ) ;
101+ cut . Find ( "#short" ) . Input ( "My short Description" ) ;
102+ cut . Find ( "#content" ) . Input ( "My content" ) ;
103103 cut . Find ( "#preview" ) . Change ( "My preview url" ) ;
104104 cut . Find ( "#tags" ) . Change ( "Tag1,Tag2,Tag3" ) ;
105105 cut . Find ( "form" ) . Submit ( ) ;
@@ -121,9 +121,9 @@ public void ShouldNotUpdateUpdatedDateWhenCheckboxSet()
121121 p . Add ( c => c . OnBlogPostCreated , bp => blogPostFromComponent = bp )
122122 . Add ( c => c . BlogPost , originalBlogPost ) ) ;
123123
124- cut . Find ( "#title" ) . Change ( "My Title" ) ;
125- cut . Find ( "#short" ) . Change ( "My short Description" ) ;
126- cut . Find ( "#content" ) . Change ( "My content" ) ;
124+ cut . Find ( "#title" ) . Input ( "My Title" ) ;
125+ cut . Find ( "#short" ) . Input ( "My short Description" ) ;
126+ cut . Find ( "#content" ) . Input ( "My content" ) ;
127127 cut . Find ( "#preview" ) . Change ( "My preview url" ) ;
128128 cut . Find ( "#tags" ) . Change ( "Tag1,Tag2,Tag3" ) ;
129129 cut . Find ( "#updatedate" ) . Change ( false ) ;
0 commit comments