One method one interface as per Use case? [on hold]2019 Community Moderator ElectionInterface vs Base classC# Interfaces. Implicit implementation versus Explicit implementationWhat's the difference between a method and a function?What does it mean to “program to an interface”?Case insensitive 'Contains(string)'Proper use of the IDisposable interfaceUnderstanding Python super() with __init__() methodsInterface vs Abstract Class (general OO)What is the difference between an interface and abstract class?Proper Repository Pattern Design in PHP?

Formatting a table to look nice

Are small insurances worth it

Split a number into equal parts given the number of parts

Is there a math equivalent to the conditional ternary operator?

What is the meaning of "notice to quit at once" and "Lotty points”

School performs periodic password audits. Is my password compromised?

Difference between 'stomach' and 'uterus'

Where is the fallacy here?

PTIJ: Aharon, King of Egypt

Why do phishing e-mails use faked e-mail addresses instead of the real one?

Is there a way to find out the age of climbing ropes?

Every subset equal to original set?

Plagiarism of code by other PhD student

How to roleplay my character's ethics according to the DM when I don't understand those ethics?

What does each site of a vanilla 9.1 installation do?

Giving a talk in my old university, how prominently should I tell students my salary?

3.5% Interest Student Loan or use all of my savings on Tuition?

“I had a flat in the centre of town, but I didn’t like living there, so …”

Why would the IRS ask for birth certificates or even audit a small tax return?

How can neutral atoms have exactly zero electric field when there is a difference in the positions of the charges?

How to merge row in the first column in LaTeX

Practical reasons to have both a large police force and bounty hunting network?

Is divide-by-zero a security vulnerability?

Where is this quote about overcoming the impossible said in "Interstellar"?



One method one interface as per Use case? [on hold]



2019 Community Moderator ElectionInterface vs Base classC# Interfaces. Implicit implementation versus Explicit implementationWhat's the difference between a method and a function?What does it mean to “program to an interface”?Case insensitive 'Contains(string)'Proper use of the IDisposable interfaceUnderstanding Python super() with __init__() methodsInterface vs Abstract Class (general OO)What is the difference between an interface and abstract class?Proper Repository Pattern Design in PHP?










0















I think this is about design, opinion and best practices. Right now my ATM back-end project, I have created 5 interfaces for each ATM main functions.



  • IBalance: CheckBalance()

  • IDeposit: PlaceDeposit()

  • ILogin: CheckCardNoPassword()

  • IThirdPartyTransfer: PerformThirdPartyTransfer(BankAccount bankAccount, VMThirdPartyTransfer vmThirdPartyTransfer)

  • IWithdrawal: MakeWithdrawal(BankAccount bankAccount)

Then I have another interface called "IBankAccount" as for general repository layer purpose. In this interface, I have several methods:



  • IEnumerable ViewAllBankAccount()

  • BankAccount ViewBankAccount(long accountNumber)

  • InsertBankAccount(BankAccount bankAccount)

  • DeleteBankAccount(BankAccount bankAccount)

  • Save();

Should I removed all the single-method-single-interface and move all of them into this IBankAccount interface?










share|improve this question













put on hold as primarily opinion-based by Wai Ha Lee, DavidG, Owen Pauling, HimBromBeere, Alessandro D'Andria 12 hours ago


Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise. If this question can be reworded to fit the rules in the help center, please edit the question.













  • 6





    I think your question is possibly opinion-based - many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise.

    – Wai Ha Lee
    12 hours ago






  • 1





    Does it make sense to implement, test or use these interfaces in isolation?

    – chase
    12 hours ago















0















I think this is about design, opinion and best practices. Right now my ATM back-end project, I have created 5 interfaces for each ATM main functions.



  • IBalance: CheckBalance()

  • IDeposit: PlaceDeposit()

  • ILogin: CheckCardNoPassword()

  • IThirdPartyTransfer: PerformThirdPartyTransfer(BankAccount bankAccount, VMThirdPartyTransfer vmThirdPartyTransfer)

  • IWithdrawal: MakeWithdrawal(BankAccount bankAccount)

Then I have another interface called "IBankAccount" as for general repository layer purpose. In this interface, I have several methods:



  • IEnumerable ViewAllBankAccount()

  • BankAccount ViewBankAccount(long accountNumber)

  • InsertBankAccount(BankAccount bankAccount)

  • DeleteBankAccount(BankAccount bankAccount)

  • Save();

Should I removed all the single-method-single-interface and move all of them into this IBankAccount interface?










share|improve this question













put on hold as primarily opinion-based by Wai Ha Lee, DavidG, Owen Pauling, HimBromBeere, Alessandro D'Andria 12 hours ago


Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise. If this question can be reworded to fit the rules in the help center, please edit the question.













  • 6





    I think your question is possibly opinion-based - many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise.

    – Wai Ha Lee
    12 hours ago






  • 1





    Does it make sense to implement, test or use these interfaces in isolation?

    – chase
    12 hours ago













0












0








0








I think this is about design, opinion and best practices. Right now my ATM back-end project, I have created 5 interfaces for each ATM main functions.



  • IBalance: CheckBalance()

  • IDeposit: PlaceDeposit()

  • ILogin: CheckCardNoPassword()

  • IThirdPartyTransfer: PerformThirdPartyTransfer(BankAccount bankAccount, VMThirdPartyTransfer vmThirdPartyTransfer)

  • IWithdrawal: MakeWithdrawal(BankAccount bankAccount)

Then I have another interface called "IBankAccount" as for general repository layer purpose. In this interface, I have several methods:



  • IEnumerable ViewAllBankAccount()

  • BankAccount ViewBankAccount(long accountNumber)

  • InsertBankAccount(BankAccount bankAccount)

  • DeleteBankAccount(BankAccount bankAccount)

  • Save();

Should I removed all the single-method-single-interface and move all of them into this IBankAccount interface?










share|improve this question














I think this is about design, opinion and best practices. Right now my ATM back-end project, I have created 5 interfaces for each ATM main functions.



  • IBalance: CheckBalance()

  • IDeposit: PlaceDeposit()

  • ILogin: CheckCardNoPassword()

  • IThirdPartyTransfer: PerformThirdPartyTransfer(BankAccount bankAccount, VMThirdPartyTransfer vmThirdPartyTransfer)

  • IWithdrawal: MakeWithdrawal(BankAccount bankAccount)

Then I have another interface called "IBankAccount" as for general repository layer purpose. In this interface, I have several methods:



  • IEnumerable ViewAllBankAccount()

  • BankAccount ViewBankAccount(long accountNumber)

  • InsertBankAccount(BankAccount bankAccount)

  • DeleteBankAccount(BankAccount bankAccount)

  • Save();

Should I removed all the single-method-single-interface and move all of them into this IBankAccount interface?







c# oop interface repository-pattern






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 12 hours ago









SteveSteve

94129




94129




put on hold as primarily opinion-based by Wai Ha Lee, DavidG, Owen Pauling, HimBromBeere, Alessandro D'Andria 12 hours ago


Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise. If this question can be reworded to fit the rules in the help center, please edit the question.









put on hold as primarily opinion-based by Wai Ha Lee, DavidG, Owen Pauling, HimBromBeere, Alessandro D'Andria 12 hours ago


Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise. If this question can be reworded to fit the rules in the help center, please edit the question.









  • 6





    I think your question is possibly opinion-based - many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise.

    – Wai Ha Lee
    12 hours ago






  • 1





    Does it make sense to implement, test or use these interfaces in isolation?

    – chase
    12 hours ago












  • 6





    I think your question is possibly opinion-based - many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise.

    – Wai Ha Lee
    12 hours ago






  • 1





    Does it make sense to implement, test or use these interfaces in isolation?

    – chase
    12 hours ago







6




6





I think your question is possibly opinion-based - many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise.

– Wai Ha Lee
12 hours ago





I think your question is possibly opinion-based - many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise.

– Wai Ha Lee
12 hours ago




1




1





Does it make sense to implement, test or use these interfaces in isolation?

– chase
12 hours ago





Does it make sense to implement, test or use these interfaces in isolation?

– chase
12 hours ago












0






active

oldest

votes

















0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes

Popular posts from this blog

AWS Lex not identifying response if by a variable The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) The Ask Question Wizard is Live! Data science time! April 2019 and salary with experienceEnforcing custom enumeration in AWS LEX for slot valuesHow to give response based on user response in Amazon Lex?Intercepting AWS Lambda Response to a AWS Lex QueryLex chat bot error: Reached second execution of fulfillment lambda on the same utteranceamazon lex showing invalid responseLambda response send back to Lex slot?Response card in Amazon lexAmazon Lex - Lambda response return HTML to botHow can I solve 424 (Failed Dependency) (python) obtained from Amazon lex?

Алба-Юлія

Захаров Федір Захарович