コード例 #1
0
 public ScrumReportRepositoryTest()
 {
     _componentContext          = AutofacConfig.RegisterDependancies();
     _scrumReportRepository     = _componentContext.Resolve <IScrumReportRepository>();
     _mockHttpClient            = _componentContext.Resolve <Mock <IHttpClientService> >();
     _scrumDataRepository       = _componentContext.Resolve <IRepository <Scrum> >();
     _scrumAnswerDataRepository = _componentContext.Resolve <IRepository <ScrumAnswer> >();
     _questionDataRepository    = _componentContext.Resolve <IRepository <Question> >();
     _stringConstant            = _componentContext.Resolve <IStringConstantRepository>();
     _mockHttpContextBase       = _componentContext.Resolve <Mock <HttpContextBase> >();
     _userManager           = _componentContext.Resolve <ApplicationUserManager>();
     _mockServiceRepository = _componentContext.Resolve <Mock <IServiceRepository> >();
     Initialize();
 }
 public ScrumReportController(IScrumReportRepository scrumRepository, IAttachmentRepository attachmentRepository, ApplicationUserManager userManager, IStringConstantRepository stringConstant) : base(stringConstant)
 {
     _scrumReportRepository = scrumRepository;
     _attachmentRepository  = attachmentRepository;
     _userManager           = userManager;
 }