@@ -21,7 +21,7 @@ public void RenderHtmlShouldThrowExceptionIfComponentDoesNotExist()
21
21
{
22
22
var environment = new Mock < IReactEnvironment > ( ) ;
23
23
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" ) ;
25
25
26
26
Assert . Throws < ReactInvalidComponentException > ( ( ) =>
27
27
{
@@ -34,8 +34,9 @@ public void RenderHtmlShouldCallRenderComponent()
34
34
{
35
35
var environment = new Mock < IReactEnvironment > ( ) ;
36
36
environment . Setup ( x => x . Execute < bool > ( "typeof Foo !== 'undefined'" ) ) . Returns ( true ) ;
37
+ var config = new Mock < IReactSiteConfiguration > ( ) ;
37
38
38
- var component = new ReactComponent ( environment . Object , "Foo" , "container" )
39
+ var component = new ReactComponent ( environment . Object , config . Object , "Foo" , "container" )
39
40
{
40
41
Props = new { hello = "World" }
41
42
} ;
@@ -51,8 +52,9 @@ public void RenderHtmlShouldWrapComponentInDiv()
51
52
environment . Setup ( x => x . Execute < bool > ( "typeof Foo !== 'undefined'" ) ) . Returns ( true ) ;
52
53
environment . Setup ( x => x . Execute < string > ( @"React.renderToString(Foo({""hello"":""World""}))" ) )
53
54
. Returns ( "[HTML]" ) ;
55
+ var config = new Mock < IReactSiteConfiguration > ( ) ;
54
56
55
- var component = new ReactComponent ( environment . Object , "Foo" , "container" )
57
+ var component = new ReactComponent ( environment . Object , config . Object , "Foo" , "container" )
56
58
{
57
59
Props = new { hello = "World" }
58
60
} ;
@@ -65,8 +67,9 @@ public void RenderHtmlShouldWrapComponentInDiv()
65
67
public void RenderJavaScriptShouldCallRenderComponent ( )
66
68
{
67
69
var environment = new Mock < IReactEnvironment > ( ) ;
70
+ var config = new Mock < IReactSiteConfiguration > ( ) ;
68
71
69
- var component = new ReactComponent ( environment . Object , "Foo" , "container" )
72
+ var component = new ReactComponent ( environment . Object , config . Object , "Foo" , "container" )
70
73
{
71
74
Props = new { hello = "World" }
72
75
} ;
0 commit comments