Exemplo n.º 1
0
        public void MapEFToBO()
        {
            var      mapper = new DALCurrencyMapper();
            Currency entity = new Currency();

            entity.SetProperties("A", DateTime.Parse("1/1/1987 12:00:00 AM"), "A");

            BOCurrency response = mapper.MapEFToBO(entity);

            response.CurrencyCode.Should().Be("A");
            response.ModifiedDate.Should().Be(DateTime.Parse("1/1/1987 12:00:00 AM"));
            response.Name.Should().Be("A");
        }
Exemplo n.º 2
0
        public void MapEFToBOList()
        {
            var      mapper = new DALCurrencyMapper();
            Currency entity = new Currency();

            entity.SetProperties("A", DateTime.Parse("1/1/1987 12:00:00 AM"), "A");

            List <BOCurrency> response = mapper.MapEFToBO(new List <Currency>()
            {
                entity
            });

            response.Count.Should().Be(1);
        }