public void Init() { var config = new ConfigurationBuilder() .AddUserSecrets(Constants.SecretKey) .Build(); var ybpConnectionString = config["YbpConnectionString"]; var ybpSampleConnectionString = config["YbpSampleAppConnectionString"]; var c = new ServiceCollection(); c.AddLogging(); c.InitDataContext(ybpSampleConnectionString); c.InitYbpDataContext(ybpConnectionString); c.InitBLServices(); c.AddSingleton(new YbpUserContext { { "UserId", 75675 } }); var t = c.ToList(); serviceProvider = c.BuildServiceProvider(); _bp = serviceProvider.GetService <IYbpEngine>(); }
public UpdateCompanyAction( IYbpEngine engine, ICompanyValidator companyValidator, ICompanyWriter companyWriter ) : base(engine) { _companyValidator = companyValidator; _companyWriter = companyWriter; }
public YbpFirstAction(IYbpEngine engine) : base(engine) { }
public YbpAction(IYbpEngine engine) : base(engine) { }
public SendInvitation(IYbpEngine engine) : base(engine) { }
public CreateUserAction(IYbpEngine engine, AppUserManager userManager) : base(engine) { _userManager = userManager; }
public YbpActionBase(IYbpEngine engine) { _engine = engine; }