Ejemplo n.º 1
0
        public async Task ReturnPositionIdNullOnLockHandlerPosition()
        {
            // Arrange + Act
            var response = await HandlerApi.LockHandlerPosition();

            //Assert
            Assert.That(response.Content.position.PositionId, Is.Not.Null);
        }
Ejemplo n.º 2
0
        public async Task ReturnOKOnLockHandlerPosition()
        {
            // Arrange + Act
            var response = await HandlerApi.LockHandlerPosition();

            //Assert
            Assert.That(response.StatusCode, Is.EqualTo(HttpStatusCode.OK), "response.StatusCode, Is.EqualTo(HttpStatusCode.OK");
            Assert.That(response.Content.Status, Is.EqualTo(CommandStatus.Ack), "response.Content.Status, Is.EqualTo(CommandStatus.Ack)");
        }
Ejemplo n.º 3
0
        public async Task ReturnPositionZeroOnLockHandlerPosition()
        {
            // Arrange + Act
            var response = await HandlerApi.LockHandlerPosition();

            //Assert
            Assert.That(response.Content.position.X, Is.EqualTo(0), "X, Is.EqualTo(0)");
            Assert.That(response.Content.position.Y, Is.EqualTo(0), "Y, Is.EqualTo(0)");
            Assert.That(response.Content.position.Z, Is.EqualTo(0), "Z, Is.EqualTo(0)");
        }