public void MapBOToModel() { var mapper = new BOLVersionInfoMapper(); BOVersionInfo bo = new BOVersionInfo(); bo.SetProperties(1, DateTime.Parse("1/1/1987 12:00:00 AM"), "A"); ApiVersionInfoResponseModel response = mapper.MapBOToModel(bo); response.AppliedOn.Should().Be(DateTime.Parse("1/1/1987 12:00:00 AM")); response.Description.Should().Be("A"); response.Version.Should().Be(1); }
public void MapBOToModelList() { var mapper = new BOLVersionInfoMapper(); BOVersionInfo bo = new BOVersionInfo(); bo.SetProperties(1, DateTime.Parse("1/1/1987 12:00:00 AM"), "A"); List <ApiVersionInfoResponseModel> response = mapper.MapBOToModel(new List <BOVersionInfo>() { { bo } }); response.Count.Should().Be(1); }