public void MapEFToBOList() { var mapper = new DALFollowerMapper(); Follower entity = new Follower(); entity.SetProperties("A", DateTime.Parse("1/1/1987 12:00:00 AM"), "A", 1, 1, 1, "A"); List <BOFollower> response = mapper.MapEFToBO(new List <Follower>() { entity }); response.Count.Should().Be(1); }
public void MapEFToBO() { var mapper = new DALFollowerMapper(); Follower entity = new Follower(); entity.SetProperties("A", DateTime.Parse("1/1/1987 12:00:00 AM"), "A", 1, 1, 1, "A"); BOFollower response = mapper.MapEFToBO(entity); response.Blocked.Should().Be("A"); response.DateFollowed.Should().Be(DateTime.Parse("1/1/1987 12:00:00 AM")); response.FollowRequestStatu.Should().Be("A"); response.FollowedUserId.Should().Be(1); response.FollowingUserId.Should().Be(1); response.Id.Should().Be(1); response.Muted.Should().Be("A"); }
public void MapBOToEF() { var mapper = new DALFollowerMapper(); var bo = new BOFollower(); bo.SetProperties(1, "A", DateTime.Parse("1/1/1987 12:00:00 AM"), "A", 1, 1, "A"); Follower response = mapper.MapBOToEF(bo); response.Blocked.Should().Be("A"); response.DateFollowed.Should().Be(DateTime.Parse("1/1/1987 12:00:00 AM")); response.FollowRequestStatu.Should().Be("A"); response.FollowedUserId.Should().Be(1); response.FollowingUserId.Should().Be(1); response.Id.Should().Be(1); response.Muted.Should().Be("A"); }