Exemplo n.º 1
0
        public GetPingResponse Get(GetPingRequest request)
        {
            Log.Debug("Ping GET accessed");

            try
            {
                var number = _getPingQuery.Get();

                var pingResponse = new GetPingResponse {Number = number};

                return pingResponse;
            }
            catch (Exception ex)
            {
                Log.Error("Number not found", ex);
                throw;
            }
        }
        public void Then_The_GetUrl_Is_Correctly_Built()
        {
            var actual = new GetPingRequest();

            actual.GetUrl.Should().Be("ping");
        }