public void PopulateDimensionsForReport(PartReport i_PartReport) { var dimension = new DbDimension(); i_PartReport.Dimensions = dimension.GetDimensionsByMeasureMentReport(i_PartReport); i_PartReport.Dimensions.Sort((i_Dimension, i_Dimension1) => i_Dimension.SerialNumber - i_Dimension1.SerialNumber); }
public void SaveReport(PartReport i_PartReport) { var dbPartReport = new DbPartReport(); if (i_PartReport.Id == -1) { dbPartReport.InsertPartReport(i_PartReport); } else { dbPartReport.UpdatePartReport(i_PartReport); } var dbDimension = new DbDimension(); foreach (var dimension in i_PartReport.Dimensions) { dimension.PartReport = i_PartReport; if (dimension.Id == -1) { dbDimension.InsertDimension(dimension); } else { dbDimension.UpdateDimension(dimension); } } }
public void InsertDimensionTest() { DbDimension target = new DbDimension(); // TODO: Initialize to an appropriate value Dimension i_Dimension = null; // TODO: Initialize to an appropriate value target.InsertDimension(i_Dimension); Assert.Inconclusive("A method that does not return a value cannot be verified."); }
public void UpdateDimensionsTest() { DbDimension target = new DbDimension(); // TODO: Initialize to an appropriate value List <Dimension> i_Dimensions = null; // TODO: Initialize to an appropriate value target.UpdateDimensions(i_Dimensions); Assert.Inconclusive("A method that does not return a value cannot be verified."); }
public void DeleteDimension(Dimension i_Dimension) { var dbDimension = new DbDimension(); if (i_Dimension.Id > 0) { dbDimension.DeleteDimension(i_Dimension); } }
public void GetDimensionsTest() { DbDimension target = new DbDimension(); // TODO: Initialize to an appropriate value List <Dimension> expected = null; // TODO: Initialize to an appropriate value List <Dimension> actual; actual = target.GetDimensions(); Assert.AreEqual(expected, actual); Assert.Inconclusive("Verify the correctness of this test method."); }
public void SaveDimesino(Dimension i_GetDimension) { var dbDimension = new DbDimension(); int ret = dbDimension.UpdateDimension(i_GetDimension); if (ret == 0) { dbDimension.InsertDimension(i_GetDimension); } }
public void UpdateDimensionTest() { DbDimension target = new DbDimension(); // TODO: Initialize to an appropriate value Dimension i_Dimension = null; // TODO: Initialize to an appropriate value int expected = 0; // TODO: Initialize to an appropriate value int actual; actual = target.UpdateDimension(i_Dimension); Assert.AreEqual(expected, actual); Assert.Inconclusive("Verify the correctness of this test method."); }
public void DbDimensionConstructorTest() { DbDimension target = new DbDimension(); Assert.Inconclusive("TODO: Implement code to verify target"); }
public void InsertDimension(Dimension i_Dimension) { var dbDimension = new DbDimension(); dbDimension.InsertDimension(i_Dimension); }