コード例 #1
0
 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));
 }
コード例 #2
0
 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);
 }
コード例 #3
0
 public VersionController(IVersionRepo repo, IProductRepo prodrepo)
 {
     _repo     = repo;
     _prodRepo = prodrepo;
 }
コード例 #4
0
 public ProductController(IProductRepo repo, IVersionRepo verepo)
 {
     _verepo = verepo;
     _repo   = repo;
 }