public void MapBOToModelList() { var mapper = new BOLTagMapper(); BOTag bo = new BOTag(); bo.SetProperties(1, 1, 1, "A", 1); List <ApiTagResponseModel> response = mapper.MapBOToModel(new List <BOTag>() { { bo } }); response.Count.Should().Be(1); }
public void MapBOToModel() { var mapper = new BOLTagMapper(); BOTag bo = new BOTag(); bo.SetProperties(1, 1, 1, "A", 1); ApiTagResponseModel response = mapper.MapBOToModel(bo); response.Count.Should().Be(1); response.ExcerptPostId.Should().Be(1); response.Id.Should().Be(1); response.TagName.Should().Be("A"); response.WikiPostId.Should().Be(1); }