Ejemplo n.º 1
0
        public void ThenTheFollowingLiftDetailsShouldBeReturned(Gherkin.Ast.DataTable dataTable)
        {
            var expectedResult = new LayerIdsExecutionResult();
            var expectedLayers = new List <LayerIdDetails>();

            foreach (var row in dataTable.Rows.Skip(1))
            {
                expectedLayers.Add(new LayerIdDetails
                {
                    AssetId   = long.Parse(row.Cells.ElementAt(0).Value),
                    DesignId  = long.Parse(row.Cells.ElementAt(1).Value),
                    LayerId   = long.Parse(row.Cells.ElementAt(2).Value),
                    StartDate = DateTime.Parse(row.Cells.ElementAt(3).Value),
                    EndDate   = DateTime.Parse(row.Cells.ElementAt(4).Value)
                });
            }

            expectedResult.LayerIdDetailsArray = expectedLayers.ToArray();

            AssertObjectsAreEqual <LayerIdsExecutionResult>(expectedResult);
        }
Ejemplo n.º 2
0
        public void AndIReadBackAllLiftsFrom(string getLiftUri)
        {
            var liftGetter = new Getter <LayerIdsExecutionResult>(string.Format(RestClient.Productivity3DServiceBaseUrl + getLiftUri));

            layerIdsExecutionResult = liftGetter.SendRequest(liftGetter.Uri);
        }