public void SetUp(DateTime date) { _container = IoC.Initialize(); var mock = IoC.MockStore; mock.Setup(s => s.GetItems()).Returns(new[] { new Commitment { DueDate = date } }); _taskListModel = _container.GetInstance<ITaskListModel>(); _repo = _container.GetInstance<IRepository<Commitment>>(); }
public void SetUp() { _container = IoC.Initialize(); var mock = IoC.MockStore; mock.Setup(s => s.GetItems()).Returns(Enumerable.Empty<Commitment>()); _repo = _container.GetInstance<IRepository<Commitment>>(); _taskListModel = _container.GetInstance<ITaskListModel>(); }
public TaskListPresenter(ITaskListModel model) { this.model = model; cmdFactory = new CommandFactory(model); }
public HomeController(IRepository<Commitment> repository, ITaskListModel taskListModel) { _taskList = taskListModel; _repository = repository; }
public CommandFactory(ITaskListModel model) { Model = model; }