コード例 #1
0
 public SaveAmountRecordUseCaseTests()
 {
     _accountWriteOnlyRepository = new Mock <IAccountWriteOnlyRepository>();
     _accountReadOnlyRepository  = new Mock <IAccountReadOnlyRepository>();
     _saveAmountRecordUseCase    = new SaveAmountRecordUseCase(_accountReadOnlyRepository.Object, _accountWriteOnlyRepository.Object);
 }
コード例 #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="useCase"></param>
 public InvestmentController(ISaveAmountRecordUseCase useCase)
 {
     _useCase = useCase;
 }
コード例 #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="useCase"></param>
 public IncomeController(ISaveAmountRecordUseCase useCase)
 {
     _useCase = useCase;
 }
コード例 #4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="useCase"></param>
 public ExpenseController(ISaveAmountRecordUseCase useCase)
 {
     _useCase = useCase;
 }