public void MapEFToBOList() { var mapper = new DALActionTemplateMapper(); ActionTemplate entity = new ActionTemplate(); entity.SetProperties("A", "A", "A", "A", "A", 1); List <BOActionTemplate> response = mapper.MapEFToBO(new List <ActionTemplate>() { entity }); response.Count.Should().Be(1); }
public virtual ActionTemplate MapBOToEF( BOActionTemplate bo) { ActionTemplate efActionTemplate = new ActionTemplate(); efActionTemplate.SetProperties( bo.ActionType, bo.CommunityActionTemplateId, bo.Id, bo.JSON, bo.Name, bo.Version); return(efActionTemplate); }
public void MapEFToBO() { var mapper = new DALActionTemplateMapper(); ActionTemplate entity = new ActionTemplate(); entity.SetProperties("A", "A", "A", "A", "A", 1); BOActionTemplate response = mapper.MapEFToBO(entity); response.ActionType.Should().Be("A"); response.CommunityActionTemplateId.Should().Be("A"); response.Id.Should().Be("A"); response.JSON.Should().Be("A"); response.Name.Should().Be("A"); response.Version.Should().Be(1); }