示例#1
0
        public AdvisorAppServiceTest()
        {
            MockRepository = new DbMockRepository <InsuranceDb>();

            var provider = DependencyInjectorStub.Get((s, c) =>
            {
                BootStrapper.RegisterServices(s, c);
                s.AddScoped(x => MockRepository.GetContext());
            });

            Service = provider.GetService <IAdvisorAppService>();
        }
示例#2
0
 public AdvisorController(IAdvisorAppService service)
 {
     _service = service;
 }
示例#3
0
 public PublicController(IAdvisorAppService advisorAppService)
 {
     _advisorAppService = advisorAppService;
 }