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(); } }
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; }
public UserService(IBoardGameDbContext context, IUserServiceValidation userServiceValidation) { this.context = context; this.userServiceValidation = userServiceValidation; }