public void Init()
 {
     WebApiConfig.DependencyRegistrationAction = builder =>
     {
         builder.RegisterApiControllers(Assembly.Load(Assemblies.WebApi));
         builder.RegisterInstance(TestObjectFactory.GetCommitsService()).As <ICommitsService>();
     };
 }
Beispiel #2
0
 public void Init()
 {
     this.commitsService = TestObjectFactory.GetCommitsService();
 }
 public void Init()
 {
     this.controller = MyWebApi
                       .Controller <CommitsController>()
                       .WithResolvedDependencies(TestObjectFactory.GetCommitsService());
 }