public void MapBOToModelList() { var mapper = new BOLWorkerMapper(); BOWorker bo = new BOWorker(); bo.SetProperties("A", "A", "A", true, "A", "A", "A", "A", "A", "A"); List <ApiWorkerResponseModel> response = mapper.MapBOToModel(new List <BOWorker>() { { bo } }); response.Count.Should().Be(1); }
public void MapBOToModel() { var mapper = new BOLWorkerMapper(); BOWorker bo = new BOWorker(); bo.SetProperties("A", "A", "A", true, "A", "A", "A", "A", "A", "A"); ApiWorkerResponseModel response = mapper.MapBOToModel(bo); response.CommunicationStyle.Should().Be("A"); response.Fingerprint.Should().Be("A"); response.Id.Should().Be("A"); response.IsDisabled.Should().Be(true); response.JSON.Should().Be("A"); response.MachinePolicyId.Should().Be("A"); response.Name.Should().Be("A"); response.RelatedDocumentIds.Should().Be("A"); response.Thumbprint.Should().Be("A"); response.WorkerPoolIds.Should().Be("A"); }