public ToDoItemServiceTests()
        {
            var fakeToDoRepo = new FakeToDoItemRepository();
            var fakeUserRepo = new FakeUserRepository();

            _toDoItemService = new ToDoItemService(fakeToDoRepo, fakeUserRepo);
        }
예제 #2
0
 public KanbanCreate()
 {
     InitializeComponent();
     // _userService = new UserManager(new EfUserDal());
     _toDoListService = new ToDoListManager(new EfToDoListDal());
     _toDoItemService = new ToDoItemManager(new EfToDoItemDal());
 }
 public ToDoItemListService(IUnitOfWork uoW, IToDoItemListRepository rep, IToDoItemService itemService, ILoggerService logger)
 {
     _repository = rep;
     _unitOfWork = uoW;
     _toDoItemService = itemService;
     _loggerService = logger;
 }
예제 #4
0
 public ToDoItemViewModel(
     IToDoItemService toDoItemService,
     INavigationService navigationService,
     IEntityMapper entityMapper)
 {
     this.toDoItemService   = toDoItemService;
     this.navigationService = navigationService;
     this.entityMapper      = entityMapper;
     item = new ToDoItemDetailModel();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="AssessmentQuery"/> class.
 /// </summary>
 /// <param name="service">The service.</param>
 /// <param name="labelService">The label service.</param>
 /// <param name="todoListService">The todo list service.</param>
 public AssessmentQuery(IToDoItemService service, ILabelService labelService, IToDoListService todoListService, IUserService userService)
 {
     _todoitemService = service;
     _labelService    = labelService;
     _todolistService = todoListService;
     _userService     = userService;
     pagingDto        = new Contract.Core.Contract.PagingDTO {
         PageIndex = 0, PageSize = 0, SearchString = null
     };
 }
예제 #6
0
        public ToDoItemsViewModel(INavigationService navigationService, IToDoItemService toDoItemService)
        {
            this.navigationService = navigationService;
            this.toDoItemService   = toDoItemService;

            ItemSelectedCommand = new Command <ToDoItemModel>(HandleItemSelectedAsync);
            RemoveItemCommand   = new Command <ToDoItemModel>(HandleRemoveItem);
            ShowOrHideItemDescriptionCommand = new Command <ToDoItemModel>(ShowOrHideItemDescription);
            AddItemCommand = new Command(HandleAddItemAsync);
        }
예제 #7
0
        public ProfileViewModel(INavigationService navigationService, IToDoItemService toDoItemService)
        {
            this.navigationService = navigationService;
            this.toDoItemService   = toDoItemService;

            ItemSelectedCommand              = new Command <ToDoItemModel>(HandleItemSelectedAsync);
            OpenToDoItemsCommand             = new Command <ToDoItemStatus>(OpenToDoItems);
            ShowOrHideItemDescriptionCommand = new Command <ToDoItemModel>(ShowOrHideItemDescription);
            AddItemCommand = new Command(HandleAddItemAsync);
        }
예제 #8
0
 public ToDoController(IToDoItemService todoItemsService,
                       UserManager <ApplicationUser> userManager)
 {
     _toDoItemService = todoItemsService;
     _userManager     = userManager;
 }
 public ToDoController(IToDoTitleService toDoTitleService, IToDoItemService toDoItemService, IToDoTitleDal toDoTitleDal)
 {
     _toDoTitleService = toDoTitleService;
     _toDoItemService  = toDoItemService;
     _toDoTitleDal     = toDoTitleDal;
 }
예제 #10
0
 public ToDoController(IToDoItemService toDoItems)
 {
     _toDoItemService = toDoItems;
 }
예제 #11
0
 public ToDoController(IToDoItemService toDoItemService)
 {
     this._toDoItemService = toDoItemService ?? throw new ArgumentNullException(nameof(toDoItemService));
 }
 public ItemController(IToDoItemListService taskListService, IToDoItemService taskService)
 {
     _taskListService = taskListService;
     _taskService = taskService;
 }
예제 #13
0
 public ToDoItemController(IToDoItemService _toDoItemService, IToDoItemStatusService _toDoItemStatusService, IToDoItemUserService _toDoItemUserService)
 {
     toDoItemService       = _toDoItemService;
     toDoItemStatusService = _toDoItemStatusService;
     toDoItemUserService   = _toDoItemUserService;
 }
예제 #14
0
 public ToDoController(IToDoItemService _ctx)
 {
     dbctx = _ctx;
 }
예제 #15
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ToDoItemController"/> class.
 /// </summary>
 /// <param name="logger">The logger.</param>
 /// <param name="ToDoItemService">To do item service.</param>
 public ToDoItemController(Framework.Core.ILogger logger, IToDoItemService toDoItemService, IMapper mapper)
 {
     _logger          = logger;
     _toDoItemService = toDoItemService;
     _mapper          = mapper;
 }
예제 #16
0
        public ToDoService()
        {
            ToDoItemServiceFactory toDoServiceFactory = new ToDoItemServiceFactory();

            ToDoItemService = toDoServiceFactory.CreateInstance();
        }
예제 #17
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Mutation"/> class.
 /// </summary>
 /// <param name="labelService">The label service.</param>
 /// <param name="todoItemService">The todo item service.</param>
 /// <param name="todolistservice">The todolistservice.</param>
 public Mutation(ILabelService labelService, IToDoItemService todoItemService, IToDoListService todolistservice)
 {
     _labelService    = labelService;
     _todoItemService = todoItemService;
     _todoListService = todolistservice;
 }
 public MarkedFilterController(IToDoItemListService taskListService, IToDoItemService taskService)
 {
     _taskListService = taskListService;
     _taskService = taskService;
 }
        public ToDoService()
        { 
            ToDoItemServiceFactory toDoServiceFactory = new ToDoItemServiceFactory();

            ToDoItemService = toDoServiceFactory.CreateInstance();
        }
 public ToDoItemController(IToDoItemService toDoItemService, ILogger <UserController> logger)
 {
     _toDoItemService = toDoItemService;
     _logger          = logger;
 }
예제 #21
0
 public HomeController(IToDoItemService toDoItemService)
 {
     this.toDoItemService = toDoItemService;
 }
예제 #22
0
 public ToDoItemService()
 {
     toDoItemDbService = new DAL.Services.ToDoItemService(apiSettings.ConnectionString);
 }
예제 #23
0
 public ToDoController(IToDoItemService service)
 {
     _toDoItemService = service;
 }
예제 #24
0
 public ItemsController(IToDoItemService itemService)
 {
     _itemService = itemService;
 }
 public OrderController(IToDoItemService taskService)
 {
     _taskService = taskService;
 }
예제 #26
0
 public ToDoController(IToDoItemService itemService, UserManager <ApplicationUser> manager)
 {
     toDoItemService = itemService;
     userManager     = manager;
 }
예제 #27
0
 public ToDoItemsController(IToDoItemService toDoItemService, IMapper mapper)
 {
     _toDoItemService = toDoItemService;
     _mapper          = mapper;
 }
예제 #28
0
        public TodoItemController(IToDoItemService toDoItemService)

        {
            this.toDoItemService = toDoItemService;
        }
 public ToDoController(IToDoItemService toDoItemService, UserManager <IdentityUser> userManager)
 {
     _toDoItemService = toDoItemService;
     _userManager     = userManager;
 }
예제 #30
0
 public ToDoItemController(IToDoItemService service, IOptions <PagingOptions> defaultPagingOptions)
 {
     _toDoItemService      = service;
     _defaultPagingOptions = defaultPagingOptions.Value;
 }
 public ToDoItemController(IToDoItemService toDoItemService)
 {
     _toDoItemService = toDoItemService;
 }
예제 #32
0
 public HomeController(IToDoListService toDoListService, IToDoItemService toDoItemService)
 {
     _toDoListService = toDoListService;
     _toDoItemService = toDoItemService;
 }