Can anyone help me? I need guidance on how to solv...
# android
r
Can anyone help me? I need guidance on how to solve this problem. just guide me to use a design pattern to get rid of the repeated code. https://codereview.stackexchange.com/questions/248415/refactor-method-using-generic-method-or-design-pattern
t
tbh, I think what you're really looking for is an autofixture for generating test data, like https://github.com/marcellogalhardo/kotlin-fixture
note: I haven't used this but I have used similar libraries with .NET Core. They're a godsend.
r
@Tim VanFosson I am not trying to genreate test data. my code works fine and it has unit tests. I am trying to refactor the code in order to maintain the codebase. and BTW I updated the question. Thanks