public TodoItemsService2(ITodoItemsContext todoItemsContext, IUsersContext usersContext) { _todoItemsContext = todoItemsContext; _usersContext = usersContext; }
public TodoItemsService1(ITodoItemsContext todoItemsContext, IData data) { _todoItemsContext = todoItemsContext; _data = data; }
static T executeWithContexts <T>(Expression <Func <TodoItemsService2, T> > scenarioExpression, ITodoItemsContext todoItemsContext, IUsersContext usersContext) { Console.WriteLine("Creating a {0}", typeof(TodoItemsService2).FullName); var todoItemsService = new TodoItemsService2(todoItemsContext, usersContext); todoItemsService.Log(scenarioExpression); return(scenarioExpression.Compile()(todoItemsService)); }
public TodoItemsService2(ITodoItemsContext todoItemsContext) { _todoItemsContext = todoItemsContext; }