Beispiel #1
0
        public void MapBOToModel()
        {
            var         mapper = new BOLFollowingMapper();
            BOFollowing bo     = new BOFollowing();

            bo.SetProperties("A", DateTime.Parse("1/1/1987 12:00:00 AM"), "A");
            ApiFollowingResponseModel response = mapper.MapBOToModel(bo);

            response.DateFollowed.Should().Be(DateTime.Parse("1/1/1987 12:00:00 AM"));
            response.Muted.Should().Be("A");
            response.UserId.Should().Be("A");
        }
Beispiel #2
0
        public void MapBOToModelList()
        {
            var         mapper = new BOLFollowingMapper();
            BOFollowing bo     = new BOFollowing();

            bo.SetProperties("A", DateTime.Parse("1/1/1987 12:00:00 AM"), "A");
            List <ApiFollowingResponseModel> response = mapper.MapBOToModel(new List <BOFollowing>()
            {
                { bo }
            });

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