本文整理汇总了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;
}
示例2: ProjectService
static ProjectService()
{
ProjectService.unitOfWork = new UnitOfWork();
ProjectService.repository =
RepositoryFactory.GetRepository<IProjectRepository,
Project>(ProjectService.unitOfWork);
}
示例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;
}
示例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;
}
示例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);
}
示例6: ProjectLogic
public ProjectLogic(IProjectRepository projectRepository, IUserProjectAssignmentRepository userProjectAssignmentRepository,
IProjectSerialize serializer)
{
ProjectRepository = projectRepository;
UserProjectAssignmentRepository = userProjectAssignmentRepository;
Serializer = serializer;
}
示例7: MasterController
public MasterController(ITicketService ticketService, IUserRepository userRepo, IProjectRepository projectRepo, ITicketRepository ticketRepo)
{
_ticketService = ticketService;
_userRepo = userRepo;
_projectRepo = projectRepo;
_ticketRepo = ticketRepo;
}
示例8: ConnectionController
public ConnectionController(IConnectionRepository dbConnectionRepository, IProjectRepository dbProjectRepository,
IConnectionProviderRepository dbConnectionProviderRepository)
{
_dbConnectionRepository = dbConnectionRepository;
_dbProjectRepository = dbProjectRepository;
_dbConnectionProviderRepository = dbConnectionProviderRepository;
}
示例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);
}
示例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);
}
示例11: ToProjectLocalTime
public static Stack ToProjectLocalTime(this Stack stack, IProjectRepository repository)
{
if (stack == null)
return null;
return stack.ToProjectLocalTime(repository.GetById(stack.ProjectId, true));
}
示例12: TaskController
public TaskController(IUnitOfWork unitOfWork, ITaskRepository taskRepository, IProjectRepository projectRepository, IDisposableCollection disposables)
: base(disposables)
{
_taskRepository = taskRepository;
_projectRepository = projectRepository;
_unitOfWork = unitOfWork;
}
示例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.");
}
示例14: RemoveProjectWorkItemHandler
public RemoveProjectWorkItemHandler(IProjectRepository projectRepository, IEventRepository eventRepository, IStackRepository stackRepository, ITokenRepository tokenRepository, IWebHookRepository webHookRepository) {
_projectRepository = projectRepository;
_eventRepository = eventRepository;
_stackRepository = stackRepository;
_tokenRepository = tokenRepository;
_webHookRepository = webHookRepository;
}
示例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));
}