public void MapEFToBO() { var mapper = new DALTransactionStatuMapper(); TransactionStatu entity = new TransactionStatu(); entity.SetProperties(1, "A"); BOTransactionStatu response = mapper.MapEFToBO(entity); response.Id.Should().Be(1); response.Name.Should().Be("A"); }
public void MapBOToEF() { var mapper = new DALTransactionStatuMapper(); var bo = new BOTransactionStatu(); bo.SetProperties(1, "A"); TransactionStatu response = mapper.MapBOToEF(bo); response.Id.Should().Be(1); response.Name.Should().Be("A"); }
public void MapEFToBOList() { var mapper = new DALTransactionStatuMapper(); TransactionStatu entity = new TransactionStatu(); entity.SetProperties(1, "A"); List <BOTransactionStatu> response = mapper.MapEFToBO(new List <TransactionStatu>() { entity }); response.Count.Should().Be(1); }