Esempio n. 1
0
 public void OneSetUp()
 {
     _mockLogger                  = new Mock <ILogger <TaskController> >().Object;
     _mockCache                   = new Mock <IETagCache>().Object;
     _mockModelValidation         = new Mock <ModelValidation>().Object;
     _mockUpdateNameDTO           = new Mock <UpdateNameDTO>().Object;
     _mockUpdateNameDTO.UserId    = 12314;
     _mockUpdateNameDTO.Name      = "GoKu";
     _updateIsCompletedDTO        = new Mock <UpdateIsCompletedDTO>().Object;
     _updateIsCompletedDTO.UserId = 13123;
 }
Esempio n. 2
0
        public void SetUp()
        {
            _toDoController                = new ToDoController(_moqService, _mockLogger, _mockCache);
            _mockToDoUpdateDTO             = new Mock <ToDoUpdateDTO>().Object;
            _mockToDoUpdateDTO.UserId      = 14321;
            _mockToDoUpdateDTO.Name        = "For the horde";
            _mockToDoUpdateDTO.Description = "battle for azeroth";

            _mockUpdateDescriptionDTO             = new Mock <UpdateDescriptionDTO>().Object;
            _mockUpdateDescriptionDTO.UserId      = 14321;
            _mockUpdateDescriptionDTO.Description = "Protect the dragon qween";

            _mockUpdateNameDTO        = new Mock <UpdateNameDTO>().Object;
            _mockUpdateNameDTO.UserId = 14321;
            _mockUpdateNameDTO.Name   = "Emilia Clarke";
        }