public void CreateHistoryTasks() { var list = access.GetUsers(); UserFactoryTest userFactoryTest = new UserFactoryTest(); userFactoryTest.CreateUsers(access); HouseholdTaskFactoryTest householdTaskFactoryTest = new HouseholdTaskFactoryTest(); householdTaskFactoryTest.CreateHouseholdTask(access); HistoryTask historyTask1 = new HistoryTask { Date = Time1, EditorId = "1", Status = Data.Constants.ProcessingStatus.NotDone, TaskId = 3 }; access.CreateOrUpdate(historyTask1); HistoryTask historyTask2 = new HistoryTask { Date = Time2, EditorId = "2", Status = Data.Constants.ProcessingStatus.NotDone, TaskId = 4 }; access.CreateOrUpdate(historyTask2); }
public void CreateHouseholdTask() { if (access.GetUsers().Count == 0) { UserFactoryTest userFactoryTest = new UserFactoryTest(); userFactoryTest.CreateUsers(access); } ProcessingTimeFactoryTest processingTimeFactoryTest = new ProcessingTimeFactoryTest(); processingTimeFactoryTest.CreateProcessingTimes(access); HouseholdTask task1 = new HouseholdTask { CreatorId = "1", Title = Task1Title, Description = Task1Description, ProcessingTimeId = 1 }; access.CreateOrUpdate(task1); HouseholdTask task2 = new HouseholdTask { CreatorId = "2", Title = Task2Title, Description = Task2Description, ProcessingTimeId = 2 }; access.CreateOrUpdate(task2); }