Esempio n. 1
0
 public MatchService(IBoardGameDbContext context, IMatchServiceValidationBulider matchServiceValidationBulider)
 {
     this.context = context;
     validator    = matchServiceValidationBulider
                    .SetContext(context)
                    .Bulid();
 }
 internal BoardGameDatabaseUnitOfWork(IBoardGameDbContext bdContext, bool withTransaction = false)
 {
     this.context = bdContext;
     if (withTransaction)
     {
         IsTransactionScope = true;
         contextTransaction = this.context.BeginTransaction();
     }
 }
Esempio n. 3
0
 public MatchServiceValidation(IValidationModel <Match> matchValid, IBoardGameDbContext context)
 {
     this.matchValidation = matchValid;
     this.context         = context;
 }
 public IMatchServiceValidationBulider SetContext(IBoardGameDbContext context)
 {
     this.context = context;
     return(this);
 }
 public BgDatabaseUowBuliderMock(IBoardGameDbContext context)
 {
     this.context = context;
 }
Esempio n. 6
0
 public UserService(IBoardGameDbContext context, IUserServiceValidation userServiceValidation)
 {
     this.context = context;
     this.userServiceValidation = userServiceValidation;
 }