Ejemplo n.º 1
0
        public async void CouriersController_GetCurrentLocationByCourierIdAsync_should_return_accepted()
        {
            // Arrange
            var fakeGuid = Guid.NewGuid();

            // Act
            var result = await _controller.GetCurrentLocationByCourierIdAsync(fakeGuid) as ObjectResult;

            // Assert
            result.Should().NotBeNull();
            result.StatusCode.Should().Be((int)HttpStatusCode.OK);
            _service.Verify(x => x.GetCurrentCourierLocationByCourierIdAsync(fakeGuid), Times.Once());
        }