public static OpCoDivision PopulateNewItem() { OpCoDivision opCoDivision = new OpCoDivision(); opCoDivision.Code = Guid.NewGuid().ToString().Substring(0, 3); opCoDivision.Logo = new byte[1]; opCoDivision.LogoURI = "uri"; opCoDivision.OpCo = OpcoTests.PopulateNewItem(); opCoDivision.OpCoId = OpcoTests.SaveItem(opCoDivision.OpCo); opCoDivision.UpdatedBy = "test"; return(opCoDivision); }
internal SalesLocation PopulateNewItem() { SalesLocation salesLocation = new SalesLocation(); salesLocation.TelephoneNumber = "TelephoneNumber"; salesLocation.Location = "Location"; salesLocation.OpCo = OpcoTests.PopulateNewItem(); salesLocation.OpCo.Id = OpcoController.SaveOpCo(salesLocation.OpCo); salesLocation.OpCoId = salesLocation.OpCo.Id; salesLocation.Description = "Test"; salesLocation.UpdatedBy = "test"; return(salesLocation); }
internal static OpCoShipment PopulateNewItem() { // Populate and Create an OpCo with default values OpCo opCo = OpcoTests.PopulateNewItem(); opCo.Id = OpcoTests.SaveItem(opCo); OpCoShipment opCoShipment = new OpCoShipment(); //populate item and lines opCoShipment.OpCoCode = opCo.Code; opCoShipment.OpCoSequenceNumber = 1; opCoShipment.OpCoContact.Email = "*****@*****.**"; opCoShipment.OpCoContact.Name = "TDC Test Team"; opCoShipment.DespatchNumber = "Despatch"; opCoShipment.RequiredShipmentDate = DateTime.Today; opCoShipment.TransactionTypeCode = "TransType"; opCoShipment.RouteCode = "NHST"; opCoShipment.CustomerNumber = "CustNo"; opCoShipment.CustomerReference = "ref"; opCoShipment.CustomerName = "Robert Horne Group Ltd."; opCoShipment.CustomerAddress.Line1 = "Mansion House"; opCoShipment.CustomerAddress.PostCode = "NN3 6JL"; opCoShipment.ShipmentNumber = "ShipNo"; opCoShipment.ShipmentName = "Shipment Name"; opCoShipment.ShipmentAddress.Line1 = "Shipment Address Line 1"; opCoShipment.ShipmentAddress.PostCode = "NN3 6JL"; opCoShipment.SalesBranchCode = "BBI"; opCoShipment.AfterTime = "08:30:00"; opCoShipment.BeforeTime = "23:59:59"; opCoShipment.TailLiftRequired = true; opCoShipment.VehicleMaxWeight = (decimal)1.1; opCoShipment.CheckInTime = 5; opCoShipment.DeliveryWarehouseCode = "HNH"; opCoShipment.StockWarehouseCode = "XYZ"; opCoShipment.DivisionCode = "00"; opCoShipment.GeneratedDateTime = DateTime.Today; opCoShipment.Status = 0; opCoShipment.UpdatedDate = DateTime.Today; opCoShipment.UpdatedBy = "TDC Test Team"; opCoShipment.Instructions = "Instructions"; return(opCoShipment); }