public void Initialize() { DataContext = new MemoryDataContext(); ObjectToInsert = new object(); DataContext.Save(ObjectToInsert); }
public void Initialize() { DataContext = new MemoryDataContext(); ObjectToDelete = new object(); DataContext.Save(ObjectToDelete); DataContext.Commit(); DataContext.Delete(ObjectToDelete); }
public void Initialize() { Id = 1; Expense = new Expense { Id = Id }; var dataContext = new MemoryDataContext(); dataContext.Save(Expense); dataContext.Commit(); ExpenseModel = new ExpenseModel(dataContext); }