Exemple #1
0
        public void ResolveRequestName_WithNoMetadata_ReturnsClientRequestName()
        {
            SetupMockEndPointWithoutMetadata();

            var request           = new ClientGetRequest();
            var clientRequestName = request.GetType().Name;

            var actual   = _resolver.ResolveRequestName(_mockEndpointClient, request);
            var expected = clientRequestName;

            actual.ShouldBeEquivalentTo(expected);
        }
Exemple #2
0
        public void ResolveRequestName_WithServiceStack510Metadata_ReturnsRenamedServerRequestName()
        {
            SetupMockEndpointWithServiceStack510Metadata();

            var request           = new ClientGetRequest();
            var clientRequestName = request.GetType().Name;

            var actual   = _resolver.ResolveRequestName(_mockEndpointClient, request);
            var expected = typeof(RenamedServerGetRequest).Name;

            actual.Should().NotBe(clientRequestName);
            actual.ShouldBeEquivalentTo(expected);
        }