public void Test_Format_Int()
        {
            const int expected = 5;
            var       actual   = formatter.Format(expected, ResponseSpecification.Empty);

            actual.Should().Be(expected);
        }
コード例 #2
0
            public string Select(Guid saleId, ResponseSpecification responseSpecification)
            {
                var response        = Select(saleId);
                var partialResponse = partialResponseFormatter.Format(response, responseSpecification);

                return(JsonConvert.SerializeObject(partialResponse));
            }
コード例 #3
0
 public object FormatWithPartialResponseFormatter()
 {
     return(partialResponseFormatter.Format(serverModel, responseSpecification));
 }