public void Get_Should_Work_For_Big_Multipliers() { var actual = new BusinessDataProvider().Get(1500); actual.IntProp.Should().Be(3000); actual.AnotherIntProp.Should().Be(6000); }
public void Get_Should_Correctly_Process_Zero_Multiplier() { var actual = new BusinessDataProvider().Get(0); actual.IntProp.Should().Be(0); actual.AnotherIntProp.Should().Be(0); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { categoriasDDList.DataSource = BusinessDataProvider.ProvideListaDeCategorias(); origenesDDList.DataSource = BusinessDataProvider.ProvideListaDeOrigenes(); categoriasDDList.DataBind(); origenesDDList.DataBind(); categoriasDDList.Enabled = false; origenesDDList.Enabled = false; categoriaCheckBox.Checked = false; origenCheckBox.Checked = false; ViewState["Verificado"] = false; btnModificar.Enabled = false; } else { if (categoriaCheckBox.Checked) { categoriasDDList.Enabled = true; } else { categoriasDDList.Enabled = false; } if (origenCheckBox.Checked) { origenesDDList.Enabled = true; if (origenesDDList.SelectedValue == "NACIONAL") { lblNuevoPrecio.Text = "Nuevo precio (ARS)"; } else { lblNuevoPrecio.Text = "Nuevo precio (USS)"; } } else { origenesDDList.Enabled = false; } } }
private void CargarCategorias() { categoriasDDList.DataSource = BusinessDataProvider.ProvideListaDeCategorias(); categoriasDDList.DataBind(); }
private void CargarOrigenes() { origenesDDList.DataSource = BusinessDataProvider.ProvideListaDeOrigenes(); origenesDDList.DataBind(); }
public void Setup() { provider = new BusinessDataProvider(); }