public AssignedHandler(ServiceCall objCall, IRepository repository, IUnitOfWork unitOfWork, IFeatureModule featureModule, IUserStore <AppUser> userStore, AppUser loginUser, ILogger <ServiceCallManager> logger) { _call = objCall; _repository = repository; _unitOfWork = unitOfWork; _featureModule = featureModule; _logger = logger; }
public CallWorkFlow(ServiceCall objCall, IRepository repository, IUnitOfWork unitOfWork, IFeatureModule featureModule, IUserStore <AppUser> userStore, AppUser loginUser, ILogger <ServiceCallManager> logger) { objDict = new Dictionary <string, IWorkflowHandler> { { "OPEN", new OpenHandler(objCall, repository, unitOfWork, featureModule, userStore, loginUser, logger) }, { "ASSIGNED", new AssignedHandler(objCall, repository, unitOfWork, featureModule, userStore, loginUser, logger) }, { "ACCEPTED", new AcceptedHandler(objCall, repository, unitOfWork, userStore, loginUser, logger) }, { "NOTACCEPTED", new NotAcceptedHandler(objCall, repository, unitOfWork, userStore, loginUser, logger) }, { "RESOLVED", new ResolvedHandler(objCall, repository, unitOfWork, userStore, loginUser, logger) }, { "NOTRESOLVED", new NotResolvedHandler(objCall, repository, unitOfWork, featureModule, userStore, loginUser, logger) }, { "CLOSED", new CloseHandler(objCall, repository, unitOfWork, featureModule, userStore, loginUser, logger) } }; _hdlerStatus = objDict[objCall.Status.ToUpper()]; }