public AppVersionControlService(IVersionRepo src_meta, IVersionSaveRepo dst_meta, IFileRepo src_content, IFileRepo dst_content, IDiscriptionApp discription) { Src_meta = src_meta ?? throw new Exception(nameof(src_meta)); Dst_meta = dst_meta ?? throw new Exception(nameof(dst_meta)); Src_content = src_content ?? throw new Exception(nameof(src_content)); Dst_content = dst_content ?? throw new Exception(nameof(dst_content)); Discription = discription ?? throw new Exception(nameof(discription)); }
public void Setup() { _kernel = new StandardKernel(new RepoModule()); _provider = _kernel.Get<IVersionRepoProvider>(); var credentials = new DatabaseCredentials { Database = "ETF", DatabaseType = "sqlserver", Host = "(local)", IntegratedSecurity = true }; _repo = _provider.GetVersionRepo(credentials); }
public VersionController(IVersionRepo repo, IProductRepo prodrepo) { _repo = repo; _prodRepo = prodrepo; }
public ProductController(IProductRepo repo, IVersionRepo verepo) { _verepo = verepo; _repo = repo; }