Example #1
0
        public void MapEntityToModelList()
        {
            var   mapper = new DALAdminMapper();
            Admin item   = new Admin();

            item.SetProperties(1, "A", "A", "A", "A", "A", "A");
            List <ApiAdminServerResponseModel> response = mapper.MapEntityToModel(new List <Admin>()
            {
                { item }
            });

            response.Count.Should().Be(1);
        }
Example #2
0
        public void MapEntityToModel()
        {
            var   mapper = new DALAdminMapper();
            Admin item   = new Admin();

            item.SetProperties(1, "A", "A", "A", "A", "A", "A");
            ApiAdminServerResponseModel response = mapper.MapEntityToModel(item);

            response.Email.Should().Be("A");
            response.FirstName.Should().Be("A");
            response.Id.Should().Be(1);
            response.LastName.Should().Be("A");
            response.Password.Should().Be("A");
            response.Phone.Should().Be("A");
            response.Username.Should().Be("A");
        }