public void MapModelToBO()
        {
            var mapper = new BOLInvitationMapper();
            ApiInvitationRequestModel model = new ApiInvitationRequestModel();

            model.SetProperties("A", "A");
            BOInvitation response = mapper.MapModelToBO("A", model);

            response.InvitationCode.Should().Be("A");
            response.JSON.Should().Be("A");
        }
        public void MapBOToModel()
        {
            var          mapper = new BOLInvitationMapper();
            BOInvitation bo     = new BOInvitation();

            bo.SetProperties("A", "A", "A");
            ApiInvitationResponseModel response = mapper.MapBOToModel(bo);

            response.Id.Should().Be("A");
            response.InvitationCode.Should().Be("A");
            response.JSON.Should().Be("A");
        }
        public void MapEFToBO()
        {
            var        mapper = new DALInvitationMapper();
            Invitation entity = new Invitation();

            entity.SetProperties("A", "A", "A");

            BOInvitation response = mapper.MapEFToBO(entity);

            response.Id.Should().Be("A");
            response.InvitationCode.Should().Be("A");
            response.JSON.Should().Be("A");
        }
        public void MapBOToEF()
        {
            var mapper = new DALInvitationMapper();
            var bo     = new BOInvitation();

            bo.SetProperties("A", "A", "A");

            Invitation response = mapper.MapBOToEF(bo);

            response.Id.Should().Be("A");
            response.InvitationCode.Should().Be("A");
            response.JSON.Should().Be("A");
        }
        public void MapBOToModelList()
        {
            var          mapper = new BOLInvitationMapper();
            BOInvitation bo     = new BOInvitation();

            bo.SetProperties("A", "A", "A");
            List <ApiInvitationResponseModel> response = mapper.MapBOToModel(new List <BOInvitation>()
            {
                { bo }
            });

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