@@ -21,7 +21,7 @@ public void RenderHtmlShouldThrowExceptionIfComponentDoesNotExist()
2121 {
2222 var environment = new Mock < IReactEnvironment > ( ) ;
2323 environment . Setup ( x => x . Execute < bool > ( "typeof Foo !== 'undefined'" ) ) . Returns ( false ) ;
24- var component = new ReactComponent ( environment . Object , "Foo" , "container" ) ;
24+ var component = new ReactComponent ( environment . Object , null , "Foo" , "container" ) ;
2525
2626 Assert . Throws < ReactInvalidComponentException > ( ( ) =>
2727 {
@@ -34,8 +34,9 @@ public void RenderHtmlShouldCallRenderComponent()
3434 {
3535 var environment = new Mock < IReactEnvironment > ( ) ;
3636 environment . Setup ( x => x . Execute < bool > ( "typeof Foo !== 'undefined'" ) ) . Returns ( true ) ;
37+ var config = new Mock < IReactSiteConfiguration > ( ) ;
3738
38- var component = new ReactComponent ( environment . Object , "Foo" , "container" )
39+ var component = new ReactComponent ( environment . Object , config . Object , "Foo" , "container" )
3940 {
4041 Props = new { hello = "World" }
4142 } ;
@@ -51,8 +52,9 @@ public void RenderHtmlShouldWrapComponentInDiv()
5152 environment . Setup ( x => x . Execute < bool > ( "typeof Foo !== 'undefined'" ) ) . Returns ( true ) ;
5253 environment . Setup ( x => x . Execute < string > ( @"React.renderToString(Foo({""hello"":""World""}))" ) )
5354 . Returns ( "[HTML]" ) ;
55+ var config = new Mock < IReactSiteConfiguration > ( ) ;
5456
55- var component = new ReactComponent ( environment . Object , "Foo" , "container" )
57+ var component = new ReactComponent ( environment . Object , config . Object , "Foo" , "container" )
5658 {
5759 Props = new { hello = "World" }
5860 } ;
@@ -65,8 +67,9 @@ public void RenderHtmlShouldWrapComponentInDiv()
6567 public void RenderJavaScriptShouldCallRenderComponent ( )
6668 {
6769 var environment = new Mock < IReactEnvironment > ( ) ;
70+ var config = new Mock < IReactSiteConfiguration > ( ) ;
6871
69- var component = new ReactComponent ( environment . Object , "Foo" , "container" )
72+ var component = new ReactComponent ( environment . Object , config . Object , "Foo" , "container" )
7073 {
7174 Props = new { hello = "World" }
7275 } ;
0 commit comments