mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-14 06:13:35 +01:00
27 lines
696 B
C#
27 lines
696 B
C#
using System;
|
|
using NFluent;
|
|
using WireMock.RequestBuilders;
|
|
using WireMock.ResponseBuilders;
|
|
using WireMock.Serialization;
|
|
using Xunit;
|
|
|
|
namespace WireMock.Net.Tests.Serialization
|
|
{
|
|
public class MappingConverterTests
|
|
{
|
|
[Fact]
|
|
public void MappingConverter_ToMappingModel()
|
|
{
|
|
// Assign
|
|
var request = Request.Create();
|
|
var response = Response.Create();
|
|
var mapping = new Mapping(Guid.NewGuid(), "", null, request, response, 0, null, null, null);
|
|
|
|
// Act
|
|
var model = MappingConverter.ToMappingModel(mapping);
|
|
|
|
// Assert
|
|
Check.That(model).IsNotNull();
|
|
}
|
|
}
|
|
} |