Exemplo n.º 1
0
 /// <summary>
 /// Dependency Injection ready constructor.
 /// Usable also for unit testing.
 /// </summary>
 /// <remarks>Web API Infrastructure will ALWAYS use the default constructor!</remarks>
 /// <param name="repository">Repository instance of the specific type</param>
 public AddressesController(IOpenAccessBaseRepository <SampleWebApplicationModel.Address, SampleWebApplicationModel.EntitiesModel> repository)
 {
     this.repository = repository;
 }
 /// <summary>
 /// Dependency Injection ready constructor.
 /// Usable also for unit testing.
 /// </summary>
 /// <remarks>Web API Infrastructure will ALWAYS use the default constructor!</remarks>
 /// <param name="repository">Repository instance of the specific type</param>
 public DepartmentsController(IOpenAccessBaseRepository <SampleWebApplicationModel.Department, SampleWebApplicationModel.EntitiesModel> repository)
 {
     this.repository = repository;
 }
 /// <summary>
 /// Dependency Injection ready constructor.
 /// Usable also for unit testing.
 /// </summary>
 /// <remarks>Web API Infrastructure will ALWAYS use the default constructor!</remarks>
 /// <param name="repository">Repository instance of the specific type</param>
 public ProjectsController(IOpenAccessBaseRepository <SampleWebApplicationModel.Project, SampleWebApplicationModel.EntitiesModel> repository)
 {
     this.repository = repository;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Dependency Injection ready constructor.
 /// Usable also for unit testing.
 /// </summary>
 /// <remarks>Web API Infrastructure will ALWAYS use the default constructor!</remarks>
 /// <param name="repository">Repository instance of the specific type</param>
 public GroupsController(IOpenAccessBaseRepository <SampleWebApplicationModel.Group, SampleWebApplicationModel.EntitiesModel> repository)
 {
     this.repository = repository;
 }