当前位置: 首页>>代码示例>>C#>>正文


C# IProjectRepository类代码示例

本文整理汇总了C#中IProjectRepository的典型用法代码示例。如果您正苦于以下问题:C# IProjectRepository类的具体用法?C# IProjectRepository怎么用?C# IProjectRepository使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


IProjectRepository类属于命名空间,在下文中一共展示了IProjectRepository类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: ProjectBaseController

 protected ProjectBaseController(ICurtinUserService lookupService, IProjectRepository projectRepository, IFieldOfResearchRepository fieldOfResearchRepository, ISocioEconomicObjectiveRepository socioEconomicObjectiveRepository) 
     : base(lookupService)
 {
     ProjectRepository = projectRepository;
     FieldOfResearchRepository = fieldOfResearchRepository;
     SocioEconomicObjectiveRepository = socioEconomicObjectiveRepository;
 }
开发者ID:SharePointSusan,项目名称:Research-Data-Manager,代码行数:7,代码来源:ProjectBaseController.cs

示例2: ProjectService

 static ProjectService()
 {
     ProjectService.unitOfWork = new UnitOfWork();
     ProjectService.repository =
         RepositoryFactory.GetRepository<IProjectRepository,
         Project>(ProjectService.unitOfWork);
 }
开发者ID:pachinko,项目名称:NDDDCS,代码行数:7,代码来源:ProjectService.cs

示例3: ProjectController

 public ProjectController(
     IProjectView projectView, 
     INewProjectView newProjectView, 
     IProjectRepository projectRepository, 
     IDealRepository dealRepository,
     INewProjectSupplyView newProjectSupplyView,
     INewProjectHardwareView newProjectHardwareView,
     IEditProjectSupplyView editProjectSupplyView,
     IEditProjectHardwareView editProjectHardwareView,
     INewProjectFrameView newProjectFrameView,
     IEditProjectHardwareSupplyView editProjectHardwareSupplyView,
     ILoadingView loadingView,
     ICatalogRepository catalogRepository,
     ITaskRepository taskRepository)
 {
     this.projectView = projectView;
     this.newProjectView = newProjectView;
     this.projectRepository = projectRepository;
     this.dealRepository = dealRepository;
     this.newProjectSupplyView = newProjectSupplyView;
     this.newProjectHardwareView = newProjectHardwareView;
     this.editProjectHardwareView = editProjectHardwareView;
     this.editProjectSupplyView = editProjectSupplyView;
     this.newProjectFrameView = newProjectFrameView;
     this.editProjectHardwareSupplyView = editProjectHardwareSupplyView;
     this.loadingView = loadingView;
     this.catalogRepository = catalogRepository;
     this.taskRepository = taskRepository;
 }
开发者ID:grozeille,项目名称:chiffrage,代码行数:29,代码来源:ProjectController.cs

示例4: ConfirmController

 /// <summary>
 /// Initializes a new instance of the ConfirmController class.
 /// </summary>
 public ConfirmController(IProjectRepository projectRepository, IDataCollectionRepository dataCollectionRepository, ICurtinUserService lookupService, IBus bus)
     : base(lookupService)
 {
     _projectRepository = projectRepository;
     _dataCollectionRepository = dataCollectionRepository;
     _bus = bus;
 }
开发者ID:SharePointSusan,项目名称:Research-Data-Manager,代码行数:10,代码来源:ConfirmController.cs

示例5: BuildPurgeRuleManager

 public BuildPurgeRuleManager(IBuildPurgeRuleRepository buildPurgeRuleRepository, IProjectRepository projectRepository, ISystemSettings systemSettings, IDIFactory diFactory)
 {
     _buildPurgeRuleRepository = DIHelper.VerifyParameter(buildPurgeRuleRepository);
     _projectRepository = DIHelper.VerifyParameter(projectRepository);
     _systemSettings = DIHelper.VerifyParameter(systemSettings);
     _diFactory = DIHelper.VerifyParameter(diFactory);
 }
开发者ID:gsbastian,项目名称:Sriracha.Deploy,代码行数:7,代码来源:BuildPurgeRuleManager.cs

示例6: ProjectLogic

 public ProjectLogic(IProjectRepository projectRepository, IUserProjectAssignmentRepository userProjectAssignmentRepository,
     IProjectSerialize serializer)
 {
     ProjectRepository = projectRepository;
     UserProjectAssignmentRepository = userProjectAssignmentRepository;
     Serializer = serializer;
 }
开发者ID:bojakowsky,项目名称:TaskVlopper,代码行数:7,代码来源:ProjectLogic.cs

示例7: MasterController

 public MasterController(ITicketService ticketService, IUserRepository userRepo, IProjectRepository projectRepo, ITicketRepository ticketRepo)
 {
     _ticketService = ticketService;
     _userRepo = userRepo;
     _projectRepo = projectRepo;
     _ticketRepo = ticketRepo;
 }
开发者ID:justin-arvay,项目名称:Trakker,代码行数:7,代码来源:MasterController.cs

示例8: ConnectionController

 public ConnectionController(IConnectionRepository dbConnectionRepository, IProjectRepository dbProjectRepository,
     IConnectionProviderRepository dbConnectionProviderRepository)
 {
     _dbConnectionRepository = dbConnectionRepository;
     _dbProjectRepository = dbProjectRepository;
     _dbConnectionProviderRepository = dbConnectionProviderRepository;
 }
开发者ID:leloulight,项目名称:LucentDb,代码行数:7,代码来源:ConnectionController.cs

示例9: GenerateDemoData

    public static void GenerateDemoData(
      IIssueRepository issueRepository, 
      IProjectRepository projectRepository, 
      IAttachmentRepository attachmentRepository)
    {
      Project p = new Project("SHOP", "Webshop", "All issues related to the webshop.");
      projectRepository.Add(p);

      Issue i = new Issue(p, "Crash after payment", @"I have justed paid for two pairs of shoes - or rather I tried to. When I clicked 'Pay' all I got was a yellow error screen.", 3);

      issueRepository.Add(i);

      string errorReport = "This is an error report ...";
      Attachment att = new Attachment(i, "Error report", "Error report from end user", Encoding.UTF8.GetBytes(errorReport), "text/plain");
      attachmentRepository.Add(att);

      string logFile = "DEBUG 2014-01-22 15:45:07,610 166033ms  [9] Log4NetTraceListener   WriteLine          - Executing OperationResult OperationResult: type=OK, statusCode=200.";
      att = new Attachment(i, "Logfile", "Logfile with server stack trace", Encoding.UTF8.GetBytes(logFile), "text/plain");
      attachmentRepository.Add(att);

      i = new Issue(p, "Not calculating VAT correctly", @"When I add both shoes and socks it fails to calculate the VAT correctly.", 3);

      issueRepository.Add(i);

      i = new Issue(p, "General Failure?", @"When I press ctrl-P it says 'General failure reading harddisk'! Who is that General and why is he reading my hard disk?", 5);

      issueRepository.Add(i);
    }
开发者ID:paulswartz,项目名称:Mason,代码行数:28,代码来源:DemoDataGenerator.cs

示例10: AssertCreatedEnvironment

        private void AssertCreatedEnvironment(DeployEnvironment result, DeployProject project, string environmentName, List<DeployEnvironmentConfiguration> environmentComponentList, List<DeployEnvironmentConfiguration> environmentConfigurationList, IProjectRepository sut)
        {
            Assert.IsNotNull(result);
            Assert.IsNotNullOrEmpty(result.Id);
            Assert.AreEqual(project.Id, result.ProjectId);
            Assert.AreEqual(environmentName, result.EnvironmentName);
            AssertHelpers.AssertCreatedBaseDto(result, this.UserName);
            
            environmentComponentList = environmentComponentList ?? new List<DeployEnvironmentConfiguration>();
            Assert.AreEqual(environmentComponentList.Count(), result.ComponentList.Count);
            foreach(var item in environmentComponentList)
            {
                var createdItem = result.ComponentList.SingleOrDefault(i=>i.ParentId == item.ParentId);
                AssertCreatedEnvironmentConfiguration(item, createdItem, project, result, EnumDeployStepParentType.Component);
            }
            environmentConfigurationList = environmentConfigurationList ?? new List<DeployEnvironmentConfiguration>();
            Assert.AreEqual(environmentConfigurationList.Count(), result.ConfigurationList.Count);
            foreach (var item in environmentConfigurationList)
            {
                var createdItem = result.ConfigurationList.SingleOrDefault(i => i.ParentId == item.ParentId);
                AssertCreatedEnvironmentConfiguration(item, createdItem, project, result, EnumDeployStepParentType.Configuration);
            }

            var dbItem = sut.GetEnvironment(result.Id, result.ProjectId);
            AssertEnvironment(result, dbItem);

            var dbProject = sut.GetProject(project.Id);
            var dbProjectEnvironment = dbProject.EnvironmentList.SingleOrDefault(i => i.Id == result.Id);
            Assert.IsNotNull(dbProjectEnvironment);
            AssertEnvironment(result, dbProjectEnvironment);
        }
开发者ID:gsbastian,项目名称:Sriracha.Deploy,代码行数:31,代码来源:ProjectRepositoryEnvironmentTests.cs

示例11: ToProjectLocalTime

        public static Stack ToProjectLocalTime(this Stack stack, IProjectRepository repository)
        {
            if (stack == null)
                return null;

            return stack.ToProjectLocalTime(repository.GetById(stack.ProjectId, true));
        }
开发者ID:BookSwapSteve,项目名称:Exceptionless,代码行数:7,代码来源:StackExtensions.cs

示例12: TaskController

		public TaskController(IUnitOfWork unitOfWork, ITaskRepository taskRepository, IProjectRepository projectRepository, IDisposableCollection disposables)
			: base(disposables)
		{
			_taskRepository = taskRepository;
			_projectRepository = projectRepository;
			_unitOfWork = unitOfWork;
		}
开发者ID:nikaburu,项目名称:company-example,代码行数:7,代码来源:TaskController.cs

示例13: Init

 public void Init()
 {
     _taskRepository = Substitute.For<TaskRepository>();
     _projectRepository = Substitute.For<IProjectRepository>();
     _console = Substitute.For<IConsole>();
     _addTaskCommand = new AddTaskCommand(_console, _taskRepository, _projectRepository, "secrets Eat more donuts.");
 }
开发者ID:tekavec,项目名称:TaskListKata,代码行数:7,代码来源:AddTaskCommandShould.cs

示例14: RemoveProjectWorkItemHandler

 public RemoveProjectWorkItemHandler(IProjectRepository projectRepository, IEventRepository eventRepository, IStackRepository stackRepository, ITokenRepository tokenRepository, IWebHookRepository webHookRepository) {
     _projectRepository = projectRepository;
     _eventRepository = eventRepository;
     _stackRepository = stackRepository;
     _tokenRepository = tokenRepository;
     _webHookRepository = webHookRepository;
 }
开发者ID:Nangal,项目名称:Exceptionless,代码行数:7,代码来源:RemoveProjectWorkItemHandler.cs

示例15: StatusReportController

        public StatusReportController(IStatusReportRepository repository, ITopicRepository topicRepository, IProjectRepository projectRepository, IResourceRepository resourceRepository, IStatusReportManager statusReportManager, ITagRepository tagRepository)
        {
            _repository = repository;
            _topicRepository = topicRepository;
            _projectRepository = projectRepository;
            _resourceRepository = resourceRepository;
            _tagRepository = tagRepository;
            _statusReportManager = statusReportManager;
            Mapper.CreateMap<StatusReport, StatusReportViewModel>()
                .ForMember(m => m.NumberOfStatusItems, opt => opt.ResolveUsing<NumberOfStatusItemsFormatter>());
            Mapper.CreateMap<StatusItem, StatusReportItemViewModel>()
                .ForMember(m => m.TagsString, opt =>
                {
                    opt.MapFrom(src =>
                        String.Join(",", (from tag in src.Tags
                                          select tag.Name)));
                    opt.NullSubstitute(String.Empty);
                }
                                      );

            Mapper.CreateMap<StatusReportItemViewModel, StatusItem>();

            Mapper.CreateMap<Project, ProjectViewModel>();

            Mapper.CreateMap<Tag, TagViewModel>();
            //.ForMember(m => m.StatusReportId, opt => opt.M);
            //.ForMember(dest => dest.ProjectLeadFullName, opt => opt.MapFrom(src => src.Project.Lead.FullName))
            //.ForMember(dest => dest.ProjectTeamLeadFullName, opt => opt.MapFrom(src => src.Project.Team.Lead.FullName));
        }
开发者ID:dneigler,项目名称:Status-Again,代码行数:29,代码来源:StatusReportController.cs


注:本文中的IProjectRepository类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。