Exemplo n.º 1
0
        public GetAccountEndOfMonthBalanceQueryTests()
        {
            context = InMemoryEfCoreContextFactory.Create();

            contextAdapterMock = Substitute.For <IContextAdapter>();
            contextAdapterMock.Context.Returns(context);
        }
Exemplo n.º 2
0
        public DeleteAccountByIdCommandTests()
        {
            context = InMemoryEfCoreContextFactory.Create();

            contextAdapterMock = new Mock <IContextAdapter>();
            contextAdapterMock.SetupGet(x => x.Context).Returns(context);
        }
Exemplo n.º 3
0
        public GetCategoryByIdQueryTests()
        {
            context = InMemoryEfCoreContextFactory.Create();

            contextAdapterMock = new Mock <IContextAdapter>();
            contextAdapterMock.SetupGet(x => x.Context).Returns(context);
        }
        public GetExcludedAccountQueryTests()
        {
            context = InMemoryEfCoreContextFactory.Create();

            contextAdapterMock = new Mock <IContextAdapter>();
            contextAdapterMock.SetupGet(x => x.Context).Returns(context);
        }
Exemplo n.º 5
0
        public ClearPaymentsCommandTests()
        {
            context = InMemoryEfCoreContextFactory.Create();

            contextAdapterMock = new Mock <IContextAdapter>();
            contextAdapterMock.SetupGet(x => x.Context).Returns(context);
        }
Exemplo n.º 6
0
        public GetMonthlyIncomeQueryTests()
        {
            context = InMemoryEfCoreContextFactory.Create();

            contextAdapter = Substitute.For <IContextAdapter>();
            contextAdapter.Context.Returns(context);
        }
        public GetIncludedAccountBalanceSummaryTests()
        {
            context = InMemoryEfCoreContextFactory.Create();

            contextAdapter = Substitute.For <IContextAdapter>();
            contextAdapter.Context.Returns(context);
        }
Exemplo n.º 8
0
        public GetIfAccountWithNameExistsQueryTests()
        {
            context = InMemoryEfCoreContextFactory.Create();

            contextAdapterMock = new Mock <IContextAdapter>();
            contextAdapterMock.SetupGet(x => x.Context).Returns(context);
        }
        public GetAccountProgressionHandlerTests()
        {
            context = InMemoryEfCoreContextFactory.Create();

            contextAdapterMock = new Mock <IContextAdapter>();
            contextAdapterMock.SetupGet(x => x.Context).Returns(context);
        }
Exemplo n.º 10
0
        public GetCashFlowQueryHandlerTests()
        {
            context = InMemoryEfCoreContextFactory.Create();

            contextAdapterMock = new Mock <IContextAdapter>();
            contextAdapterMock.SetupGet(x => x.Context).Returns(context);
        }
        public UpdateCategoryCommandTests()
        {
            context           = InMemoryEfCoreContextFactory.Create();
            backupServiceMock = new Mock <IBackupService>();

            contextAdapterMock = new Mock <IContextAdapter>();
            contextAdapterMock.SetupGet(x => x.Context).Returns(context);
        }
Exemplo n.º 12
0
        public DeleteCategoryByIdCommandTests()
        {
            context           = InMemoryEfCoreContextFactory.Create();
            backupServiceMock = new Mock <IBackupService>();

            contextAdapterMock = new Mock <IContextAdapter>();
            contextAdapterMock.SetupGet(x => x.Context).Returns(context);

            settingsFacadeMock = new Mock <ISettingsFacade>();
            settingsFacadeMock.SetupSet(x => x.LastDatabaseUpdate = It.IsAny <DateTime>());
        }
        public DeleteAccountByIdCommandTests()
        {
            context = InMemoryEfCoreContextFactory.Create();

            contextAdapterMock = new Mock <IContextAdapter>();
            contextAdapterMock.SetupGet(x => x.Context).Returns(context);

            backupServiceMock = new Mock <IBackupService>();
            backupServiceMock.Setup(x => x.UploadBackupAsync(BackupMode.Automatic))
            .Returns(Task.CompletedTask);

            settingsFacadeMock = new Mock <ISettingsFacade>();
            settingsFacadeMock.SetupSet(x => x.LastDatabaseUpdate = It.IsAny <DateTime>());
        }
 public DeletePaymentByIdCommandTests()
 {
     context = InMemoryEfCoreContextFactory.Create();
 }
 public GetAccountNameByIdQueryTests()
 {
     context = InMemoryEfCoreContextFactory.Create();
 }
Exemplo n.º 16
0
 public GetExcludedAccountQueryTests()
 {
     context = InMemoryEfCoreContextFactory.Create();
 }
Exemplo n.º 17
0
 public GetCategoryBySearchTermQueryTests()
 {
     context = InMemoryEfCoreContextFactory.Create();
 }
 public GetCategorySpreadingQueryTests()
 {
     context = InMemoryEfCoreContextFactory.Create();
 }
 public GetIfCategoryWithNameExistsQueryTests()
 {
     context = InMemoryEfCoreContextFactory.Create();
 }
 public GetCashFlowQueryHandlerTests()
 {
     context = InMemoryEfCoreContextFactory.Create();
 }
Exemplo n.º 21
0
 public CreateAccountCommandTests()
 {
     context = InMemoryEfCoreContextFactory.Create();
 }
Exemplo n.º 22
0
 public GetPaymentByIdQueryTests()
 {
     context = InMemoryEfCoreContextFactory.Create();
 }
Exemplo n.º 23
0
 public UpdatePaymentCommandTests()
 {
     context = InMemoryEfCoreContextFactory.Create();
 }
Exemplo n.º 24
0
 public GetCategorySummaryQueryTests()
 {
     context = InMemoryEfCoreContextFactory.Create();
 }
Exemplo n.º 25
0
 public UpdateCategoryCommandTests()
 {
     context = InMemoryEfCoreContextFactory.Create();
 }
 public GetIncludedAccountBalanceSummaryTests()
 {
     context = InMemoryEfCoreContextFactory.Create();
 }