Code Monkey home page Code Monkey logo

Comments (4)

DavidVujic avatar DavidVujic commented on September 7, 2024

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.

JohanPetersson avatar JohanPetersson commented on September 7, 2024

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.

JohanPetersson avatar JohanPetersson commented on September 7, 2024

In my case I wanted to fake ContentFolder e.g.

from episerver-fakemaker.

DavidVujic avatar DavidVujic commented on September 7, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.