public UpdateTodoItemFunction(IMapper mapper, IAuthService authService, ITodoListService todoListService, ITodoItemService todoItemService) { _mapper = mapper; _authService = authService; _todoListService = todoListService; _todoItemService = todoItemService; }
public long Get([FromServices] ITodoListService todoListService, [FromQuery] UserDto user) { long d = todoListService.Login(user.Name, user.Password); HttpContext.Session.SetString("id", d.ToString()); return(d); }
public Mutation(ITodoItemService todoItemService, ITodoListService todoListService, ILabelService labelService, IMapper mapper) { _todoItemService = todoItemService; _todoListService = todoListService; _labelService = labelService; _mapper = mapper; }
public TodoListsController(IUserService userService, ITodoListService todoListService, IMapper mapper) { _userService = userService; _todoListService = todoListService; _mapper = mapper; }
public UpdateTodoItemFunction(ICloudTableFactory cloudTableFactory, IMapper mapper, IAuthService authService, ITodoListService todoListService) { _mapper = mapper; _authService = authService; _todoListService = todoListService; _cloudTable = cloudTableFactory.CreateCloudTable(TableStorageConstants.TodoItemTable); }
public GetItemsOfTodoListFunction(IMapper mapper, IAuthService authService, ITodoItemService todoItemService, ITodoListService todoListService) { _mapper = mapper; _authService = authService; _todoItemService = todoItemService; _todoListService = todoListService; }
public AddTodoItemFunction(IAuthService authService, ITodoListService todoItemService, ITodoItemService todoItemService1, IMapper mapper) { _authService = authService; _todoListService = todoItemService; _todoItemService = todoItemService1; _mapper = mapper; }
public TodoListController(ITodoListService todoListService) { _todoListService = todoListService; var config = new MapperConfiguration(cfg => { cfg.CreateMap <TodoListViewModel, TodoListDTO>(); }); _mapper = config.CreateMapper(); }
public HomeController(ITodoListService todoListService, IItemService itemService, UserManager<ApplicationUser> userManager) { _todoListService = todoListService; _userManager = userManager; _itemService = itemService; }
public TaskApplicationService(ITaskService taskService, ITaskMapper taskMapper, ITodoListService todoListService, IUserService userService) { _taskService = taskService; _taskMapper = taskMapper; _todoListService = todoListService; _userService = userService; }
public TodoListController( ApplicationDbContext dbContext, IUserStore <IdentityUser> userStore, ITodoListService todoListService) { _dbContext = dbContext; _userStore = userStore; _todoListService = todoListService; }
public TodoItemController(ITodoListService todoListService, ITodoItemService todoItemService) { _todoListService = todoListService; _todoItemService = todoItemService; var config=new MapperConfiguration(cfg => { cfg.CreateMap<TodoItemDTO, TodoItemViewModel>(); cfg.CreateMap<TodoItemViewModel, TodoItemDTO>(); }); _mapper = config.CreateMapper(); }
public TodoListController( ITodoListService todoListService, IMapper mapper, IHttpContextAccessor httpContextAccessor, ILogger <TodoListController> logger) { this.todoListService = todoListService; this.mapper = mapper; this.httpContextAccessor = httpContextAccessor; this.logger = logger; }
public TodoListViewModel(ITodoListView view, ITodoListService service) { _view = view; _service = service; Items = new ObservableCollection<Todo>(); AddNewItemCommand = new DelegateCommand(ExecuteAddNewItemCommand, CanExecuteAddNewItemCommand); DeleteItemCommand = new DelegateCommand<Todo>(ExecuteDeleteCommand); CompletedCommand = new DelegateCommand<Todo>(ExecuteCompletedCommand); _view.DataContext = this; }
public int Post([FromServices] ITodoListService todoListService, [FromBody] UserDto user) { if (todoListService.check(user.Name) == false) { return(0); } else if (todoListService.Register(user.Name, user.Password) == true) { return(1); } ; return(2); }
public void Test_GetAllTodoList() { //Arrange _mockTodoListRepository.Setup(x => x.GetAllTodoListAsync(op)).ReturnsAsync(_todoList); _mockUnitOfWork.Setup(e => e.TodoLists).Returns(_mockTodoListRepository.Object); _service = new TodoListService(_mockUnitOfWork.Object); //Act var result = _service.GetAllTodoList(op).Result; //Assert _mockTodoListRepository.Verify(); //verify that GetAllTodoListAsync was called based on setup. Assert.NotNull(result); Assert.That(result.Count() == 3); }
public void Test_PostTodoList() { _mockTodoListRepository.Setup(x => x.GetAllTodoListAsync(op)).ReturnsAsync(_todoList); _mockUnitOfWork.Setup(e => e.TodoLists).Returns(_mockTodoListRepository.Object); _service = new TodoListService(_mockUnitOfWork.Object); //Act TodoListsController todoListController = new TodoListsController(_service, _mapper); var result = todoListController.PostTodoList(_todoListModel).Result; var response = (result.Result as CreatedAtActionResult).Value as TodoList; var value = response.Description; // Assert Assert.NotNull(result); Assert.AreEqual("US Task", value); }
public TodoListHub(ITodoListService todoList) { _todoListService = todoList; }
public bool DeleteTodoList([FromServices] ITodoListService todoListService, [FromQuery] long id) { return(todoListService.DeleteTodoList(id)); }
public bool UpdateTodoListState([FromServices] ITodoListService todoListService, [FromBody] UpdateTodoStateDto todo) { return(todoListService.UpdateTodoListState(todo)); }
public bool EditTodoList([FromServices] ITodoListService todoListService, [FromBody] UpdateTodoDto todo) { return(todoListService.EditTodoList(todo)); }
public bool AddTodoList([FromServices] ITodoListService todoListService, [FromBody] CreateTodoDto todo) { return(todoListService.AddTodoList(todo)); }
public IEnumerable <TodoDto> GetTodoList([FromServices] ITodoListService todoListService, [FromBody] SearchTodosDto condition) { return(todoListService.GetTodoList(condition)); }
public UpdateMemberShareFunction(IAuthService authService, ITodoListService todoListService, ITodoListMemberService todoListMemberService) { _authService = authService; _todoListService = todoListService; _todoListMemberService = todoListMemberService; }
public TodoListController(ITodoListService todoListService, ITokenAcquisition tokenAcquisition) { _todoListService = todoListService; _tokenAcquisition = tokenAcquisition; }
public TodoListController(ITodoListService todoListService) { _todoListService = todoListService; }
public TodoListAppService(IUnitOfWork unitOfWork, ITodoListService todoListService, ITodoListRepository todoListRepository) { _unitOfWork = unitOfWork; _todoListService = todoListService; _todoListRepository = todoListRepository; }
public CreateModel(ITodoListService todoListService) { _todoListService = todoListService; }
public TodoListModel(ITodoListItemService todoListItemService, ITodoListService todoListService) { _todoListItemService = todoListItemService; _todoListService = todoListService; }
public TodoController(ITodoListService todoListService) { _todoListService = todoListService; }
public AddMemberToTodoListFunction(IAuthService authService, ITodoListMemberService listMemberService, ITodoListService todoListService) { _authService = authService; _listMemberService = listMemberService; _todoListService = todoListService; }
public TodoListController(ITodoListService todoListService) { this.todoListService = todoListService; }
public CreateItemModel(ITodoListItemService todoListItemService, ITodoListService todoListService) { _todoListItemService = todoListItemService; _todoListService = todoListService; }