Beispiel #1
0
 public TypeUseController(Startup.DeleteByNameResolver deleteAccesor, ITypeUseReadOnlyRepository readTypeUses, ICreate <ISpecification> createSpecification)
 {
     delete = new DeleteTypeUse(deleteAccesor(DeletesEmail.Client), readTypeUses);
     create = new CreateTypeUse(createSpecification, readTypeUses);
     read   = new ReadTypeUse(readTypeUses);
 }
Beispiel #2
0
 public EmployeeController(Startup.DeleteByNameResolver deleteAccesor, IEmployeeReadOnlyRepository read, ICreate <Employee> create)
 {
     delete      = new DeleteEmployee(deleteAccesor(DeletesEmail.Employee), read);
     this.create = new CreateEmployee(create, read);
     this.read   = new ReadEmployee(read);
 }
Beispiel #3
0
 public ClientController(Startup.DeleteByNameResolver deleteAccesor, IClientReadOnlyRepository readClient, ICreate <Client> createClient)
 {
     delete = new DeleteClient(deleteAccesor(DeletesEmail.Client), readClient);
     create = new CreateClient(createClient, readClient);
     read   = new ReadClient(readClient);
 }