public MemberController(IMemberHelper memberHelper, IPlayerHelper playerHelper, ApplicationDbContext dbContext) { this.memberHelper = memberHelper; this.playerHelper = playerHelper; this.dbContext = dbContext; }
public MemberDao(IMemberHelper helper) { if(helper == null) throw new ArgumentException("Helper must be provided when creating MemberDao"); _helper = helper; this.MemberList = new List<IMember>(); }
public MemberDAO(IMemberHelper memberHelper) { if (memberHelper == null) throw new ArgumentException("Helper can\'t be null."); _memberHelper = memberHelper; MemberList = new List<IMember>(); }
public MemberDAO(IMemberHelper helper) { if (helper == null ) { throw new ArgumentException( String.Format("MemberDAO : constructor : helper cannot be null.")); } this.helper = helper; this.memberDict = new Dictionary<int, IMember>(); this.nextID = 1; }
public MemberDao(IMemberHelper helper) { if (helper == null) { throw new ArgumentException("Helper must be provided when creating MemberDao"); } _helper = helper; this.MemberList = new List <IMember>(); }
public SimpleConverter(IMapper <TTo, TFrom> mapper = null, IMemberHelper helper = null) { this.Mapper = mapper ?? (IMapper <TTo, TFrom>) new SimpleMapper <TTo, TFrom>((IMemberHelper)null); this.MemberHelper = helper ?? (IMemberHelper) new MemberExpressionHelper(); }
public void CreateMemberFailsOnNullHelper() { IMemberHelper helper = null; Assert.Throws <ArgumentException>(() => { IMemberDAO dao = new MemberDao(helper); }); }
public InterestedController(IPlayerHelper playerHelper, IMemberHelper memberHelper) { this.playerHelper = playerHelper; this.memberHelper = memberHelper; }
public ExpressionAssembler(IMapper mapper = null, IMemberHelper memberHelper = null) { _mapper = mapper; _helper = new InternalExpressionHelper(_mapper); _memberHelper = memberHelper ?? new MemberExpressionHelper(); }
/// <summary> /// Приниамет имплементацию IMemberHelper /// </summary> /// <param name="helper"></param> public SimpleMapper(IMemberHelper helper = null) { MemberHelper = helper ?? new MemberExpressionHelper(); }
public MemberApiController() { _iMemberHelper = DependencyResolver.GetMemberInstance(); }