public void MapBOToModelList() { var mapper = new BOLCreditCardMapper(); BOCreditCard bo = new BOCreditCard(); bo.SetProperties(1, "A", "A", 1, 1, DateTime.Parse("1/1/1987 12:00:00 AM")); List <ApiCreditCardResponseModel> response = mapper.MapBOToModel(new List <BOCreditCard>() { { bo } }); response.Count.Should().Be(1); }
public void MapBOToModel() { var mapper = new BOLCreditCardMapper(); BOCreditCard bo = new BOCreditCard(); bo.SetProperties(1, "A", "A", 1, 1, DateTime.Parse("1/1/1987 12:00:00 AM")); ApiCreditCardResponseModel response = mapper.MapBOToModel(bo); response.CardNumber.Should().Be("A"); response.CardType.Should().Be("A"); response.CreditCardID.Should().Be(1); response.ExpMonth.Should().Be(1); response.ExpYear.Should().Be(1); response.ModifiedDate.Should().Be(DateTime.Parse("1/1/1987 12:00:00 AM")); }