@@ -23,9 +23,9 @@ public void ShouldCreateNewBlogPostWhenValidDataGiven()
23
23
BlogPost blogPost = null ;
24
24
var cut = RenderComponent < CreateNewBlogPost > (
25
25
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" ) ;
29
29
cut . Find ( "#preview" ) . Change ( "My preview url" ) ;
30
30
cut . Find ( "#published" ) . Change ( false ) ;
31
31
cut . Find ( "#tags" ) . Change ( "Tag1,Tag2,Tag3" ) ;
@@ -57,7 +57,7 @@ public void ShouldFillGivenBlogPost()
57
57
p =>
58
58
p . Add ( c => c . OnBlogPostCreated , bp => blogPostFromComponent = bp )
59
59
. Add ( c => c . BlogPost , blogPost ) ) ;
60
- cut . Find ( "#title" ) . Change ( "My new Title" ) ;
60
+ cut . Find ( "#title" ) . Input ( "My new Title" ) ;
61
61
62
62
cut . Find ( "form" ) . Submit ( ) ;
63
63
@@ -77,9 +77,9 @@ public void ShouldNotDeleteModelWhenSet()
77
77
var cut = RenderComponent < CreateNewBlogPost > (
78
78
p => p . Add ( c => c . ClearAfterCreated , true )
79
79
. 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" ) ;
83
83
cut . Find ( "#preview" ) . Change ( "My preview url" ) ;
84
84
cut . Find ( "#tags" ) . Change ( "Tag1,Tag2,Tag3" ) ;
85
85
cut . Find ( "form" ) . Submit ( ) ;
@@ -97,9 +97,9 @@ public void ShouldNotDeleteModelWhenNotSet()
97
97
var cut = RenderComponent < CreateNewBlogPost > (
98
98
p => p . Add ( c => c . ClearAfterCreated , false )
99
99
. 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" ) ;
103
103
cut . Find ( "#preview" ) . Change ( "My preview url" ) ;
104
104
cut . Find ( "#tags" ) . Change ( "Tag1,Tag2,Tag3" ) ;
105
105
cut . Find ( "form" ) . Submit ( ) ;
@@ -121,9 +121,9 @@ public void ShouldNotUpdateUpdatedDateWhenCheckboxSet()
121
121
p . Add ( c => c . OnBlogPostCreated , bp => blogPostFromComponent = bp )
122
122
. Add ( c => c . BlogPost , originalBlogPost ) ) ;
123
123
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" ) ;
127
127
cut . Find ( "#preview" ) . Change ( "My preview url" ) ;
128
128
cut . Find ( "#tags" ) . Change ( "Tag1,Tag2,Tag3" ) ;
129
129
cut . Find ( "#updatedate" ) . Change ( false ) ;
0 commit comments