public void MapBOToModelList() { var mapper = new BOLProjectTriggerMapper(); BOProjectTrigger bo = new BOProjectTrigger(); bo.SetProperties("A", true, "A", "A", "A", "A"); List <ApiProjectTriggerResponseModel> response = mapper.MapBOToModel(new List <BOProjectTrigger>() { { bo } }); response.Count.Should().Be(1); }
public void MapBOToModel() { var mapper = new BOLProjectTriggerMapper(); BOProjectTrigger bo = new BOProjectTrigger(); bo.SetProperties("A", true, "A", "A", "A", "A"); ApiProjectTriggerResponseModel response = mapper.MapBOToModel(bo); response.Id.Should().Be("A"); response.IsDisabled.Should().Be(true); response.JSON.Should().Be("A"); response.Name.Should().Be("A"); response.ProjectId.Should().Be("A"); response.TriggerType.Should().Be("A"); }
public void MapBOToEF() { var mapper = new DALProjectTriggerMapper(); var bo = new BOProjectTrigger(); bo.SetProperties("A", true, "A", "A", "A", "A"); ProjectTrigger response = mapper.MapBOToEF(bo); response.Id.Should().Be("A"); response.IsDisabled.Should().Be(true); response.JSON.Should().Be("A"); response.Name.Should().Be("A"); response.ProjectId.Should().Be("A"); response.TriggerType.Should().Be("A"); }