public void MapBOToModel() { var mapper = new BOLClaspMapper(); BOClasp bo = new BOClasp(); bo.SetProperties(1, 1, 1); ApiClaspResponseModel response = mapper.MapBOToModel(bo); response.Id.Should().Be(1); response.NextChainId.Should().Be(1); response.PreviousChainId.Should().Be(1); }
public void MapBOToModelList() { var mapper = new BOLClaspMapper(); BOClasp bo = new BOClasp(); bo.SetProperties(1, 1, 1); List <ApiClaspResponseModel> response = mapper.MapBOToModel(new List <BOClasp>() { { bo } }); response.Count.Should().Be(1); }