public void MapBOToModel() { var mapper = new BOLPersonCreditCardMapper(); BOPersonCreditCard bo = new BOPersonCreditCard(); bo.SetProperties(1, 1, DateTime.Parse("1/1/1987 12:00:00 AM")); ApiPersonCreditCardResponseModel response = mapper.MapBOToModel(bo); response.BusinessEntityID.Should().Be(1); response.CreditCardID.Should().Be(1); response.ModifiedDate.Should().Be(DateTime.Parse("1/1/1987 12:00:00 AM")); }
public void MapBOToModelList() { var mapper = new BOLPersonCreditCardMapper(); BOPersonCreditCard bo = new BOPersonCreditCard(); bo.SetProperties(1, 1, DateTime.Parse("1/1/1987 12:00:00 AM")); List <ApiPersonCreditCardResponseModel> response = mapper.MapBOToModel(new List <BOPersonCreditCard>() { { bo } }); response.Count.Should().Be(1); }