public void setDataContext() { DataCtx.ItemsCatalog = DataFiller.GetItemsList(); DataCtx.PeopleCatalog = DataFiller.GetPeopleList(); DataCtx.EventsCatalog = DataFiller.GetEventsList(); DataCtx.StatesCatalog = DataFiller.GetStatesList(); }
public void InitializeTests() { data = new DataContext(); filler = new FillingFromFile(); dataRepository = new DataRepository(filler, data); service = new DataService(dataRepository); }
public void WriteFile(GlobalData globalData) { DataFiller dataFiller = new DataFiller(this._fileSystem); StringTupleLists stringTupleLists = dataFiller.GetTotalStringListsForSeasonLatexFile(this, globalData); DataWriter dataWriter = new DataWriter(this._fileSystem); dataWriter.WriteFromStringListsToLatexFile(this.CorrespondingLatexTemplateFile, this, stringTupleLists); }
public void TestInitialize() { dataFiller = new ConstDataFiller(); context = new DataContext(); repository = new DataRepository(dataFiller) { Data = context }; repository.Fill(); service = new DataService(repository); }
void Awake() { df = FindObjectOfType <DataFiller>(); if (!FindObjectOfType <Maintainable>()) { if (df.caller == -1) { //이러한 구조 때문에 첫 맵에는 절대 일반 시작 포인트와 USB를 같이 두지 말 것. 이러면 USB에서 시작할 수도 있음 g = Instantiate(g); Player p = g.GetComponentInChildren <Player>(); p.transform.position = transform.position; } else if (df.caller == caller) { g = Instantiate(g); Player p = g.GetComponentInChildren <Player>(); p.transform.position = transform.position; } //이와 다른 케이스도 있으나... 테스트 이외의 방법으로 정상적 진입은 불가능하므로 그냥 두자 } }
public MenuViewModel() { DataFiller.InitData(); MenuItems = new ObservableCollection <MenuItem>() { new MenuItem() { Title = "Врачи", Icon = "ic_doctor_white.png", UriDestination = new Uri("DoctorsPage.xaml", UriKind.Relative) }, new MenuItem() { Title = "Пациенты", Icon = "ic_card_white.png", UriDestination = new Uri("PatientCardsPage.xaml", UriKind.Relative) }, //new MenuItem() //{ // Title = "Посещения", // Icon = "ic_health_white.png", // UriDestination = new Uri("DoctorsPage.xaml", // UriKind.Relative) //}, new MenuItem() { Title = "Расписание", Icon = "ic_schedule_white.png", UriDestination = new Uri("SchedulePage.xaml", UriKind.Relative) } }; SelectedItem = MenuItems[0]; }
public void SetDataProvider(DataFiller df) { dataProvider = df; }
private static void FillData(ModelBuilder modelBuilder) { modelBuilder.Entity <Example>().HasData(DataFiller.CreateExamplesTestData()); }
public DataRepository(DataFiller DF) { DataFiller = DF; DataFiller.Fill(DataContext); }
public void setFiller(DataFiller filler) { this.filler = filler; }
public DatabaseActions(DataChamber data, DataFiller filler) { this.data = data; this.filler = filler; filler.Fill(data); }
public DatabaseActions(DataFiller filler) { this.filler = filler; }
public void InitializeTests() { data = new DataContext(); filler = new ConstantFiller(); dataRepository = new DataRepository(filler, data); }
public MyUserCollection(string search, string sort, string sortdir, int skip, int pageSize) { TableList = DataFiller.GetTableNames(); Users = GetUsers(search, sort, sortdir, skip, pageSize, out totalRecord); }