Пример #1
0
 public UserControllerTest()
 {
     _service    = new DataProviderFake <UserEntity>();
     _factory    = new EntityDALFactoryFake <UserEntity>(_service);
     _list       = GetListOfUsers(_service);
     _controller = new UserController(_factory);
 }
Пример #2
0
 public EntityDALFactoryFake(IBaseEntityDAL <TBLL> provider)
 {
     _provider = provider;
 }
Пример #3
0
        private List <UserEntity> GetListOfUsers(IBaseEntityDAL <UserEntity> service)
        {
            var list = service.Select();

            return(ConvertPaginateToList(list));
        }
 public BaseController(IEntityDALFactory factory)
 {
     _provider = factory.Get <TProvider, TBLL>();
 }