public BoxEntry(IRecordView view, IDataAccess dataAccess) { if (view == null) throw new ArgumentNullException("view"); this.view = view; this.dataAccess = dataAccess; }
public void Setup() { fakeDataAccess = Substitute.For<IDataAccess>(); fakeView = Substitute.For<IRecordView>(); target = new BoxEntry(fakeDataAccess); target.View = fakeView; }
public RecordPresenter(IRecordView recordView, IHISDataset hisDataset, Double pid, String clinic, Int32 oper) { _recordView = recordView; _recordView.Presenter = this; _hisDataset = hisDataset; SetProfile(pid); }
public RecordViewTabPage(IRecordView uc) { this.uc = uc; this.Controls.Add(uc as Control); (uc as Control).Dock = DockStyle.Fill; uc.FormNameUpdated += UpdateTabName; }
/// <summary> /// Initializes a new instance of the <see cref="BoxDetailsPresenter"/> class. /// </summary> /// <param name="view">The view.</param> public BoxDetailsPresenter(IRecordView view) { if (view == null) { throw new Exception("view cannot be null"); } _recordView = view; }
public RecordPresenter(IRecordView view) { if (view == null) { throw new Exception("view cannot be null"); } box = new BoxEntry(view); }
public BoxEntry(IRecordView view) { if (view == null) { throw new ArgumentNullException("view"); } this.view = view; dataAccess = new SqlDataAccess(ConfigurationManager.ConnectionStrings["DbConnection"].ConnectionString); }
public async Task OneTimeSetUp() { _eventListener = new TestEventListener(); Client = await IgniteClient.StartAsync(GetConfig()); Table = (await Client.Tables.GetTableAsync(TableName)) !; TupleView = Table.RecordBinaryView; PocoView = Table.GetRecordView <Poco>(); }
public async Task GlobalSetup() { _javaServer = await JavaServer.StartAsync(); _client = await IgniteClient.StartAsync(new IgniteClientConfiguration("127.0.0.1:" + _javaServer.Port)); _table = (await _client.Tables.GetTableAsync("PUB.tbl1")) !.RecordBinaryView; var tuple = new IgniteTuple { ["key"] = 1, ["val"] = "foo" }; await _table.UpsertAsync(null, tuple); _keyTuple = new IgniteTuple { ["key"] = 1 }; }
public RecordPresenter(IRecordView view) { if (view == null) throw new Exception("view cannot be null"); box = new BoxEntry(view); }
/// <summary> /// Initializes a new instance of the <see cref="BoxDetailsPresenter"/> class. /// </summary> /// <param name="view">The view.</param> public BoxDetailsPresenter(IRecordView view ) { if (view == null) throw new Exception("view cannot be null"); _recordView = view; }