Esempio n. 1
0
        public void CategoryDtoTest()
        {
            var mapper = ServiceTestBase.GetInstance().GetService <IMapper>();

            Categorys c = new Categorys()
            {
                Id           = 1,
                CategoryName = "1",
                SysUserId    = 1
            };

            var dto = mapper.Map <CategorysReponseDto>(c);

            Assert.Equal(dto.Id, 1);
        }
Esempio n. 2
0
 public SysUserServiceTest()
 {
     _sysUserService = ServiceTestBase.GetInstance().GetService <ISysUserService>();
 }
Esempio n. 3
0
 public CategoryServiceTest()
 {
     _categoryService = ServiceTestBase.GetInstance().GetService <ICategoryService>();
 }