public void CreateAllJsonR2P() { var data = AzureModel.GetAllTagBalances().Select(t => new { Date = t.BalanceDate, Tag = t.Tag, System = t.System, MovementType = t.MovementType, Material = t.Material, Plant = t.Plant, WorkCenter = t.WorkCenter, ValType = t.ValType, Tank = t.Tank, QuantityTimestamp = t.QuantityTimestamp, BalanceDate = t.BalanceDate, Quantity = t.Quantity, StandardUnit = t.StandardUnit }); string json = JsonConvert.SerializeObject(data); Assert.IsTrue(json.Length > 0); }
public void ReadAllTagBalance() { var items = AzureModel.GetAllTagBalances(); Assert.IsTrue(items.Count > 0); }