public void MapBOToModelList() { var mapper = new BOLActionTemplateVersionMapper(); BOActionTemplateVersion bo = new BOActionTemplateVersion(); bo.SetProperties("A", "A", "A", "A", "A", 1); List <ApiActionTemplateVersionResponseModel> response = mapper.MapBOToModel(new List <BOActionTemplateVersion>() { { bo } }); response.Count.Should().Be(1); }
public void MapBOToModel() { var mapper = new BOLActionTemplateVersionMapper(); BOActionTemplateVersion bo = new BOActionTemplateVersion(); bo.SetProperties("A", "A", "A", "A", "A", 1); ApiActionTemplateVersionResponseModel response = mapper.MapBOToModel(bo); response.ActionType.Should().Be("A"); response.Id.Should().Be("A"); response.JSON.Should().Be("A"); response.LatestActionTemplateId.Should().Be("A"); response.Name.Should().Be("A"); response.Version.Should().Be(1); }