public AmigoTenantTUserApplicationService(IBus bus, IQueryDataAccess <AmigoTenantTUserDTO> userDataAccess, IQueryDataAccess <AmigoTenantTUserBasicDTO> userBasicDataAccess, IMapper mapper, IAmigoTenantTRoleApplicationService amigoTenantTRoleApplicationService, IActivityTypeApplicationService activityTypeService, IIdentitySeverAgent identityAgent ) { if (bus == null) { throw new ArgumentNullException(nameof(bus)); } if (mapper == null) { throw new ArgumentNullException(nameof(mapper)); } _bus = bus; _userDataAccess = userDataAccess; _userBasicDataAccess = userBasicDataAccess; _mapper = mapper; _AmigoTenantTRoleApplicationService = amigoTenantTRoleApplicationService; _activityTypeService = activityTypeService; _identityAgent = identityAgent; }
public void CommonArrangements() { _bus = A.Fake <IBus>(); _mapper = A.Fake <IMapper>(); _userDataAccess = A.Fake <IQueryDataAccess <AmigoTenantTUserDTO> >(); _userBasicDataAccess = A.Fake <IQueryDataAccess <AmigoTenantTUserBasicDTO> >(); _AmigoTenantTRoleApplicationService = A.Fake <IAmigoTenantTRoleApplicationService>(); _activityTypeService = A.Fake <IActivityTypeApplicationService>(); _repoIdentitySeverAgent = A.Fake <IIdentitySeverAgent>(); _appService = new AmigoTenantTUserApplicationService(_bus, _userDataAccess, _userBasicDataAccess, _mapper, _AmigoTenantTRoleApplicationService, _activityTypeService, _repoIdentitySeverAgent); }
public AmigoTenantTRoleController(IAmigoTenantTRoleApplicationService AmigoTenantTRoleApplicationService) { _AmigoTenantTRoleApplicationService = AmigoTenantTRoleApplicationService; }