public void MapBOToModelList() { var mapper = new BOLMachinePolicyMapper(); BOMachinePolicy bo = new BOMachinePolicy(); bo.SetProperties("A", true, "A", "A"); List <ApiMachinePolicyResponseModel> response = mapper.MapBOToModel(new List <BOMachinePolicy>() { { bo } }); response.Count.Should().Be(1); }
public void MapBOToModel() { var mapper = new BOLMachinePolicyMapper(); BOMachinePolicy bo = new BOMachinePolicy(); bo.SetProperties("A", true, "A", "A"); ApiMachinePolicyResponseModel response = mapper.MapBOToModel(bo); response.Id.Should().Be("A"); response.IsDefault.Should().Be(true); response.JSON.Should().Be("A"); response.Name.Should().Be("A"); }
public void MapBOToEF() { var mapper = new DALMachinePolicyMapper(); var bo = new BOMachinePolicy(); bo.SetProperties("A", true, "A", "A"); MachinePolicy response = mapper.MapBOToEF(bo); response.Id.Should().Be("A"); response.IsDefault.Should().Be(true); response.JSON.Should().Be("A"); response.Name.Should().Be("A"); }