Open KevinBurton opened 3 years ago
Hey,
Can you give this a try? https://bunit.egilhansen.com/api/Bunit.Extensions.LoggerHelperExtensions.html If you get stuck, let me know where the code is and I can have a look.
Thank you!
So this details a CreateLogger method but I am not sure how to tie this into my component which uses BlazorTable?
On Tue, Mar 9, 2021 at 11:09 AM Ivan Josipovic notifications@github.com wrote:
Hey,
Can you give this a try? https://bunit.egilhansen.com/api/Bunit.Extensions.LoggerHelperExtensions.html If you get stuck, let me know where the code is and I can have a look.
Thank you!
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/IvanJosipovic/BlazorTable/issues/273#issuecomment-794175692, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAUFM3SGELS2UZXIGUZM3ATTCZB4LANCNFSM4Y4AU3RA .
Describe the bug I am writing a unit test for a component but I get an exception' I realize that I am using bUnit to render my components but since the exception is because BlazorTable cannot be constructed because of a missing Logger dependency I was wondering if you might have a workaround?
To Reproduce Please create a standalone Page which reproduces the issue and paste the code here in a code block. More Examples
Expected behavior I would expect the unit test to pass. But at a bare minimum not through an exception when bUnit renders my component.