Unplanned
Last Updated: 14 Aug 2024 10:52 by ADMIN
Chris
Created on: 25 Aug 2021 14:32
Category: Dialog
Type: Feature Request
14
Create an interface to easily mock the DialogFactory
I would like to easily mock the DialogFactory.
6 comments
ADMIN
Dimo
Posted on: 14 Aug 2024 10:52

Hello Nicholas,

I must confirm that this item is still gathering votes and awaiting prioritization. The item's status label reflects the official feature state that we can communicate.

What I can suggest is:

  • Refactor the unit test, so that our components are completely excluded. For example, test the parameters that the application will use to call AlertAsync(), but not the method call itself.
  • Implement end-to-end (e2e) tests.

We have some unit-testing documentation at Unit Testing Telerik UI for Blazor with bUnit

Regards,
Dimo
Progress Telerik

Do you have a stake in the designеr-developer collaboration process? If so, take our survey to share your perspective and become part of this global research. You’ll be among the first to know once the results are out.
-> Start The State of Designer-Developer Collaboration Survey 2024

Nicholas
Posted on: 13 Aug 2024 21:23

Hi Telerik Team,

Wondering if there's an update to this? If there's no interface being planned, how does the Telerik team recommend mocking the DialogFactory in unit tests?

As a user of this component library, I should be able to assert, for example, that DialogFactory.AlertAsync() method was called with an expected set of parameters when certain things happen in my component.

Our team is using xUnit and NSubstitute, but any documentation on how the authors of this factory expect the users of it to mock the DialogFactory for unit testing would be much appreciated.

Thx!

ADMIN
Dimo
Posted on: 14 Jun 2022 08:22

Hi Dan, all,

Prioritization depends on a feature request's popularity and our business strategy. As soon as we schedule this item, you will receive an email notification. Generally, an Unplanned status may imply several months or more.

Regards,
Dimo
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Dan
Posted on: 07 Jun 2022 14:54
When will this be added as it makes Testing almost impossible because so many components in an enterprise application have a dependency on the DialogFactory
Chris
Posted on: 17 Nov 2021 17:18
This came from a support ticket where I wanted a way to mock DialogFactory without using JustMock.
Nasoloniaina
Posted on: 17 Nov 2021 17:04

Hi,

Any feedback on this request ?