@@ -58,24 +58,126 @@ await Assert.That(() => resolver.CreateReactiveUIBuilder())
5858 /// </summary>
5959 private class TestResolver : IMutableDependencyResolver , IReadonlyDependencyResolver
6060 {
61- public object ? GetService ( Type ? serviceType , string ? contract = null ) => null ;
61+ public object ? GetService ( Type ? serviceType ) => null ;
6262
63- public IEnumerable < object > GetServices ( Type ? serviceType , string ? contract = null ) => [ ] ;
63+ public object ? GetService ( Type ? serviceType , string ? contract ) => null ;
6464
65- public bool HasRegistration ( Type ? serviceType , string ? contract = null ) => false ;
65+ public T ? GetService < T > ( ) => default ;
6666
67- public void Register ( Func < object ? > factory , Type ? serviceType , string ? contract = null )
67+ public T ? GetService < T > ( string ? contract ) => default ;
68+
69+ public IEnumerable < object > GetServices ( Type ? serviceType ) => [ ] ;
70+
71+ public IEnumerable < object > GetServices ( Type ? serviceType , string ? contract ) => [ ] ;
72+
73+ public IEnumerable < T > GetServices < T > ( ) => [ ] ;
74+
75+ public IEnumerable < T > GetServices < T > ( string ? contract ) => [ ] ;
76+
77+ public bool HasRegistration ( Type ? serviceType ) => false ;
78+
79+ public bool HasRegistration ( Type ? serviceType , string ? contract ) => false ;
80+
81+ public bool HasRegistration < T > ( ) => false ;
82+
83+ public bool HasRegistration < T > ( string ? contract ) => false ;
84+
85+ public void Register ( Func < object ? > factory , Type ? serviceType )
86+ {
87+ }
88+
89+ public void Register ( Func < object ? > factory , Type ? serviceType , string ? contract )
90+ {
91+ }
92+
93+ public void Register < T > ( Func < T ? > factory )
94+ {
95+ }
96+
97+ public void Register < T > ( Func < T ? > factory , string ? contract )
98+ {
99+ }
100+
101+ public void Register < TService , TImplementation > ( )
102+ where TService : class
103+ where TImplementation : class , TService , new ( )
104+ {
105+ }
106+
107+ public void Register < TService , TImplementation > ( string ? contract )
108+ where TService : class
109+ where TImplementation : class , TService , new ( )
68110 {
69111 }
70112
71- public void UnregisterCurrent ( Type ? serviceType , string ? contract = null )
113+ [ System . Diagnostics . CodeAnalysis . SuppressMessage ( "Performance" , "CA1822:Mark members as static" , Justification = "Interface implementation" ) ]
114+ public void RegisterConstant ( object ? value , Type ? serviceType , string ? contract )
72115 {
73116 }
74117
75- public void UnregisterAll ( Type ? serviceType , string ? contract = null )
118+ public void RegisterConstant < T > ( T ? value )
119+ where T : class
76120 {
77121 }
78122
123+ public void RegisterConstant < T > ( T ? value , string ? contract )
124+ where T : class
125+ {
126+ }
127+
128+ [ System . Diagnostics . CodeAnalysis . SuppressMessage ( "Performance" , "CA1822:Mark members as static" , Justification = "Interface implementation" ) ]
129+ public void RegisterLazySingleton ( Func < object ? > factory , Type ? serviceType , string ? contract )
130+ {
131+ }
132+
133+ public void RegisterLazySingleton < [ System . Diagnostics . CodeAnalysis . DynamicallyAccessedMembers ( System . Diagnostics . CodeAnalysis . DynamicallyAccessedMemberTypes . PublicParameterlessConstructor ) ] T > ( Func < T ? > factory )
134+ where T : class
135+ {
136+ }
137+
138+ public void RegisterLazySingleton < [ System . Diagnostics . CodeAnalysis . DynamicallyAccessedMembers ( System . Diagnostics . CodeAnalysis . DynamicallyAccessedMemberTypes . PublicParameterlessConstructor ) ] T > ( Func < T ? > factory , string ? contract )
139+ where T : class
140+ {
141+ }
142+
143+ public void UnregisterCurrent ( Type ? serviceType )
144+ {
145+ }
146+
147+ public void UnregisterCurrent ( Type ? serviceType , string ? contract )
148+ {
149+ }
150+
151+ public void UnregisterCurrent < T > ( )
152+ {
153+ }
154+
155+ public void UnregisterCurrent < T > ( string ? contract )
156+ {
157+ }
158+
159+ public void UnregisterAll ( Type ? serviceType )
160+ {
161+ }
162+
163+ public void UnregisterAll ( Type ? serviceType , string ? contract )
164+ {
165+ }
166+
167+ public void UnregisterAll < T > ( )
168+ {
169+ }
170+
171+ public void UnregisterAll < T > ( string ? contract )
172+ {
173+ }
174+
175+ public IDisposable ServiceRegistrationCallback ( Type serviceType , Action < IDisposable > callback ) => Disposable . Empty ;
176+
79177 public IDisposable ServiceRegistrationCallback ( Type serviceType , string ? contract , Action < IDisposable > callback ) => Disposable . Empty ;
178+
179+ public IDisposable ServiceRegistrationCallback < T > ( Action < IDisposable > callback ) => Disposable . Empty ;
180+
181+ public IDisposable ServiceRegistrationCallback < T > ( string ? contract , Action < IDisposable > callback ) => Disposable . Empty ;
80182 }
81183}
0 commit comments