public UserControllerTest() { _service = new DataProviderFake <UserEntity>(); _factory = new EntityDALFactoryFake <UserEntity>(_service); _list = GetListOfUsers(_service); _controller = new UserController(_factory); }
public EntityDALFactoryFake(IBaseEntityDAL <TBLL> provider) { _provider = provider; }
private List <UserEntity> GetListOfUsers(IBaseEntityDAL <UserEntity> service) { var list = service.Select(); return(ConvertPaginateToList(list)); }
public BaseController(IEntityDALFactory factory) { _provider = factory.Get <TProvider, TBLL>(); }