public void Convert_FromXDocumentToDocumentModel() { var expectedModel = MockAssets.SeedDocumentTestDocument(); var xDoc = MockAssets.SeedXDocumentDocument(expectedModel); var actualModel = _sut.Convert <Document>(xDoc); actualModel.Should().BeEquivalentTo(expectedModel); }
public void Convert_FromDocumentModelToXDocument() { var model = MockAssets.SeedDocumentTestDocument(); var expectedXDoc = MockAssets.SeedXDocumentDocument(model); var actualXDocument = _sut.Convert(model); actualXDocument.Should().BeEquivalentTo(expectedXDoc); }