Exemplo 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);
        }
Exemplo n.º 2
0
 public SysUserServiceTest()
 {
     _sysUserService = ServiceTestBase.GetInstance().GetService <ISysUserService>();
 }
Exemplo n.º 3
0
 public CategoryServiceTest()
 {
     _categoryService = ServiceTestBase.GetInstance().GetService <ICategoryService>();
 }