private string Describe(DeveloperHasLeftProject @event) { Require.NotNull(@event, nameof(@event)); var developer = _userRepository.GetAccount(@event.UserId); var developerFullName = developer.Firstname + " " + developer.Lastname; var project = _projectRepository.GetProject(@event.ProjectId); return string.Format(EventDescriptionResources.DeveloperHasLeftProject, developerFullName, project.Name); }
private DistributionPolicy GetDistributionPolicyForEvent(DeveloperHasLeftProject @eventInfo) { return DistributionPolicyFactory.GetProjectRelatedPolicy(@eventInfo.ProjectId) .Merge(DistributionPolicyFactory.GetAdminRelatedPolicy()); }
private DistributionPolicy GetDistributionPolicyForEvent(DeveloperHasLeftProject @eventInfo) { return (DistributionPolicyFactory.GetProjectRelatedPolicy(@eventInfo.ProjectId) .Merge(DistributionPolicyFactory.GetAdminRelatedPolicy())); }