public SolutionManager(ISolutionDal solutionDal, IFileCreateService fileCreateService, IProjectDal projectDal, IUnitDal unitDal) { _solutionDal = solutionDal; _fileCreateService = fileCreateService; _projectDal = projectDal; _unitDal = unitDal; }
public UserBll(IUserDal userDal, EmailSender sender, IProjectDal projectDal) { _userDal = userDal; _emailSender = sender; _projectDal = projectDal; RSA = new RSACryptoServiceProvider(); }
private void DeleteSelf([Inject] IProjectDal dal) { using (BypassPropertyChecks) { Resources.Clear(); FieldManager.UpdateChildren(this); Delete(this.Id, dal); } }
private void Fetch(ProjectTracker.Dal.AssignmentDto data, [Inject] IProjectDal dal) { using (BypassPropertyChecks) { ProjectId = data.ProjectId; Role = data.RoleId; LoadProperty(AssignedProperty, data.Assigned); TimeStamp = data.LastChanged; var project = dal.Fetch(data.ProjectId); ProjectName = project.Name; } }
private void Execute([Inject] IProjectDal dal) { var data = dal.Fetch(ProjectId); if (data.Ended.HasValue) { throw new InvalidOperationException("Project already closed"); } data.Ended = DateTime.Today; dal.Update(data); Closed = true; }
private void Create(int projectId, [Inject] IProjectDal dal) { using (BypassPropertyChecks) { ProjectId = projectId; RoleList.CacheList(); Role = RoleList.DefaultRole(); LoadProperty(AssignedProperty, DateTime.Today); var project = dal.Fetch(projectId); ProjectName = project.Name; } BusinessRules.CheckRules(); }
private void Fetch(int id, [Inject] IProjectDal dal) { var data = dal.Fetch(id); using (BypassPropertyChecks) { Id = data.Id; Name = data.Name; Description = data.Description; Started = data.Started; Ended = data.Ended; TimeStamp = data.LastChanged; Resources = DataPortal.FetchChild <ProjectResources>(id); } }
private void Insert([Inject] IProjectDal dal) { using (BypassPropertyChecks) { var item = new ProjectTracker.Dal.ProjectDto { Name = this.Name, Description = this.Description, Started = this.Started, Ended = this.Ended }; dal.Insert(item); Id = item.Id; TimeStamp = item.LastChanged; } FieldManager.UpdateChildren(this); }
private void Fetch(string name, [Inject] IProjectDal dal) { using (LoadListMode) { List <Dal.ProjectDto> list = null; if (name == null) { list = dal.Fetch(); } else { list = dal.Fetch(name); } foreach (var item in list) { Add(DataPortal.FetchChild <ProjectInfo>(item)); } } }
private void Delete(int id, [Inject] IProjectDal dal) { dal.Delete(id); }
public ProjectsBL() { projectDal = new ProjectDal(); playersBL = new PlayersBL(); }
private void Execute([Inject] IProjectDal dal) { ProjectExists = dal.Exists(ProjectId); }
private void Fetch([Inject] IProjectDal dal) { Fetch(null, dal); }
public FileCreateManager(ICommandService commandService, ISolutionDal solutionDal, IProjectDal projectDal) { _commandService = commandService; _solutionDal = solutionDal; _projectDal = projectDal; }
public ProjectManager(IProjectDal projectDal) { _projectDal = projectDal; }
public CommentsHub(IProjectDal projectDal, IUserDal userDal) { _projectDal = projectDal; _userDal = userDal; }
public ProjectController(IProjectDal project, IAddTask addTask) { _project = project; _addTask = addTask; }
public ProjectBll(IProjectDal projectDal) { _projectDal = projectDal; }
public ProjectManager(IProjectDal projectDal, IFileCreateService fileCreateService) { _projectDal = projectDal; _fileCreateService = fileCreateService; }
public ProjectController(IProjectDal projectDal) : base(projectDal) { this.projectDal = projectDal; }
public ProjectService(IProjectDal projectDal) { _projectDal = projectDal; }