Comments (4)
Hi!
Maybe a new class - FakeBlock - that inherits "Fake", just like FakePage and FakeProduct (in the Commerce folder) would solve it? What do you think about that?
/David
18 okt. 2016 kl. 13:47 skrev Johan Petersson [email protected]:
Hi,
It would be convenient with FakeContent instead of FakePage so we can fake blocks as well.
I tried to do this by myself, but this method internal override void HelpCreatingMockForCurrentType(IFakeMaker maker) is marked as internal, so can't override it when inheriting from Fake. Do you mind changing it to public, and maybe add FakeContent as well?—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
from episerver-fakemaker.
But then we need one for FakeMedia, FakeThis and FakeThat :) Or is there a reason why we can't just fake IContent?
from episerver-fakemaker.
In my case I wanted to fake ContentFolder e.g.
from episerver-fakemaker.
Aha, ok!
I think I had some sort of idea of different types, because of the need to explicitly mock a certain type and the fake-instance itself would know about the actual type to mock (like PageData). But there is probably a better way! If it's possible, fork the repo and experiment!
/David
18 okt. 2016 kl. 16:41 skrev Johan Petersson [email protected]:
In my case I wanted to fake ContentFolder e.g.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
from episerver-fakemaker.
Related Issues (13)
- Add support for Commerce EntryContentBase
- Goals of the project? HOT 6
- Exception when running tests HOT 9
- Add a contributing.md
- Add a setup/get started info text
- IContentLoader.Get with InvariantCulture returns null HOT 4
- Add version which supports EPi 10
- Dealing with ContentReference.StartPage. HOT 2
- Using strongly typed page/content types with Get<> or GetChildren<>. HOT 5
- EPiServer 9 support HOT 3
- Relation with ContentLoader HOT 6
- add ContentData support HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from episerver-fakemaker.