public void SetUp()
        {
            _loggingService           = A.Fake <ILogService>();
            _tagService               = A.Fake <ITagService>();
            _facebookService          = A.Fake <IFacebookService>();
            _complaintSeverityService = A.Fake <IComplaintSeverityService>();
            _complaintService         = A.Fake <IComplaintService>();
            _userService              = A.Fake <IUserService>();
            _tagBuilder               = A.Fake <ITagBuilder>();
            _complaintBuilder         = A.Fake <IComplaintBuilder>();

            _controller = new ComplaintController(_facebookService, _loggingService, _tagService,
                                                  _complaintSeverityService, _complaintService, _userService, _tagBuilder, _complaintBuilder);
        }
        public ComplaintController(IFacebookService facebookService, 
            ILogService loggingService,
            ITagService tagService, 
            IComplaintSeverityService complaintSeverityService,
            IComplaintService complaintService, 
            IUserService userService,
            ITagBuilder tagBuilder, 
            IComplaintBuilder complaintBuilder)
            : base(facebookService, loggingService)
        {
            if (complaintService == null)
            {
                throw new ArgumentNullException("complaintService");
            }

            if (tagService == null)
            {
                throw new ArgumentNullException("tagService");
            }

            if (complaintSeverityService == null)
            {
                throw new ArgumentNullException("complaintSeverityService");
            }

            if (tagBuilder == null)
            {
                throw new ArgumentNullException("tagBuilder");
            }

            if (complaintBuilder == null)
            {
                throw new ArgumentNullException("complaintBuilder");
            }

            if (userService == null)
            {
                throw new ArgumentNullException("userService");
            }

            _userService = userService;
            _tagBuilder = tagBuilder;
            _complaintBuilder = complaintBuilder;
            _complaintSeverityService = complaintSeverityService;
            _tagService = tagService;
            _complaintService = complaintService;
        }
Example #3
0
        public ComplaintController(IFacebookService facebookService,
                                   ILogService loggingService,
                                   ITagService tagService,
                                   IComplaintSeverityService complaintSeverityService,
                                   IComplaintService complaintService,
                                   IUserService userService,
                                   ITagBuilder tagBuilder,
                                   IComplaintBuilder complaintBuilder)
            : base(facebookService, loggingService)
        {
            if (complaintService == null)
            {
                throw new ArgumentNullException("complaintService");
            }

            if (tagService == null)
            {
                throw new ArgumentNullException("tagService");
            }

            if (complaintSeverityService == null)
            {
                throw new ArgumentNullException("complaintSeverityService");
            }

            if (tagBuilder == null)
            {
                throw new ArgumentNullException("tagBuilder");
            }

            if (complaintBuilder == null)
            {
                throw new ArgumentNullException("complaintBuilder");
            }

            if (userService == null)
            {
                throw new ArgumentNullException("userService");
            }

            _userService              = userService;
            _tagBuilder               = tagBuilder;
            _complaintBuilder         = complaintBuilder;
            _complaintSeverityService = complaintSeverityService;
            _tagService               = tagService;
            _complaintService         = complaintService;
        }
        public void SetUp()
        {
            _loggingService = A.Fake<ILogService>();
            _tagService = A.Fake<ITagService>();
            _facebookService = A.Fake<IFacebookService>();
            _complaintSeverityService = A.Fake<IComplaintSeverityService>();
            _complaintService = A.Fake<IComplaintService>();
            _userService = A.Fake<IUserService>();
            _tagBuilder = A.Fake<ITagBuilder>();
            _complaintBuilder = A.Fake<IComplaintBuilder>();

            _controller = new ComplaintController(_facebookService, _loggingService, _tagService,
                _complaintSeverityService, _complaintService, _userService, _tagBuilder, _complaintBuilder);
        }