Пример #1
0
        public void MapBOToModelList()
        {
            var        mapper = new BOLFollowerMapper();
            BOFollower bo     = new BOFollower();

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

            response.Count.Should().Be(1);
        }
Пример #2
0
        public void MapBOToModel()
        {
            var        mapper = new BOLFollowerMapper();
            BOFollower bo     = new BOFollower();

            bo.SetProperties(1, "A", DateTime.Parse("1/1/1987 12:00:00 AM"), "A", 1, 1, "A");
            ApiFollowerResponseModel response = mapper.MapBOToModel(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");
        }