public ToDoListPageViewModel(ToDoStore todoStore, ToDoActions todoActions, INavigationService navigationService) : base(navigationService) { _toDoStore = todoStore; _toDoActions = todoActions; _toDoStore.OnEmitted += TodoStore_OnEmitted; }
public void SetUp() { _dbContext = new Mock <IApplicationDbContext>(); _mapper = new Mock <IMapper>(); _toDoStore = new ToDoStore(_dbContext.Object, _mapper.Object); }
public App() { var dispatcher = new Dispatcher(); Locator.CurrentMutable.RegisterConstant(dispatcher, typeof(Dispatcher)); var todoStore = new ToDoStore(); Locator.CurrentMutable.RegisterConstant(todoStore, typeof(ToDoStore)); }