public MemberController(IMemberHelper memberHelper, IPlayerHelper playerHelper,
                         ApplicationDbContext dbContext)
 {
     this.memberHelper = memberHelper;
     this.playerHelper = playerHelper;
     this.dbContext    = dbContext;
 }
Пример #2
0
        public MemberDao(IMemberHelper helper)
        {
            if(helper == null) throw new ArgumentException("Helper must be provided when creating MemberDao");

            _helper = helper;

            this.MemberList = new List<IMember>();
        }
Пример #3
0
        public MemberDAO(IMemberHelper memberHelper) 
        {
            if (memberHelper == null)
                throw new ArgumentException("Helper can\'t be null.");

            _memberHelper = memberHelper;

            MemberList = new List<IMember>();

        }
Пример #4
0
 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;
 }
Пример #5
0
        public MemberDao(IMemberHelper helper)
        {
            if (helper == null)
            {
                throw new ArgumentException("Helper must be provided when creating MemberDao");
            }

            _helper = helper;

            this.MemberList = new List <IMember>();
        }
Пример #6
0
 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;
 }
Пример #9
0
 public ExpressionAssembler(IMapper mapper = null, IMemberHelper memberHelper = null)
 {
     _mapper       = mapper;
     _helper       = new InternalExpressionHelper(_mapper);
     _memberHelper = memberHelper ?? new MemberExpressionHelper();
 }
Пример #10
0
 /// <summary>
 /// Приниамет имплементацию IMemberHelper
 /// </summary>
 /// <param name="helper"></param>
 public SimpleMapper(IMemberHelper helper = null)
 {
     MemberHelper = helper ?? new MemberExpressionHelper();
 }
Пример #11
0
 public MemberApiController()
 {
     _iMemberHelper = DependencyResolver.GetMemberInstance();
 }