Ejemplo n.º 1
0
 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);
        }
Ejemplo n.º 3
0
        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);
 }
Ejemplo n.º 5
0
 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;
         }
         //이와 다른 케이스도 있으나... 테스트 이외의 방법으로 정상적 진입은 불가능하므로 그냥 두자
     }
 }
Ejemplo n.º 6
0
        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];
        }
Ejemplo n.º 7
0
 public void SetDataProvider(DataFiller df)
 {
     dataProvider = df;
 }
 private static void FillData(ModelBuilder modelBuilder)
 {
     modelBuilder.Entity <Example>().HasData(DataFiller.CreateExamplesTestData());
 }
Ejemplo n.º 9
0
 public DataRepository(DataFiller DF)
 {
     DataFiller = DF;
     DataFiller.Fill(DataContext);
 }
Ejemplo n.º 10
0
 public void setFiller(DataFiller filler)
 {
     this.filler = filler;
 }
Ejemplo n.º 11
0
 public DatabaseActions(DataChamber data, DataFiller filler)
 {
     this.data   = data;
     this.filler = filler;
     filler.Fill(data);
 }
Ejemplo n.º 12
0
 public DatabaseActions(DataFiller filler)
 {
     this.filler = filler;
 }
Ejemplo n.º 13
0
 public void InitializeTests()
 {
     data           = new DataContext();
     filler         = new ConstantFiller();
     dataRepository = new DataRepository(filler, data);
 }
Ejemplo n.º 14
0
    public MyUserCollection(string search, string sort, string sortdir, int skip, int pageSize)
    {
        TableList = DataFiller.GetTableNames();

        Users = GetUsers(search, sort, sortdir, skip, pageSize, out totalRecord);
    }