public UPCashFileNameTests() { // Seed for (int i = 1; i <= 3; i++) { DatabaseContext.UpCashDumpFileNames.Add(new UPCashDumpFileName { IsSuccess = true, FileName = $"testfile{i}.dat", Timestamp = DateTimeOffset.UtcNow }); } DatabaseContext.SaveChanges(); _fileNameGateway = new UPCashFileNameGateway(DatabaseContext); }
/// <summary> /// Initializes a new instance of the <see cref="GetUPCashFileNameUseCase"/> class. /// </summary> /// <param name="gateway">The gateway.</param> public GetUPCashFileNameUseCase(IUPCashFileNameGateway gateway) { _gateway = gateway; }
/// <summary> /// Initializes a new instance of the <see cref="CreateUPCashFileNameUseCase"/> class. /// </summary> /// <param name="gateway">The gateway.</param> public CreateUPCashFileNameUseCase(IUPCashFileNameGateway gateway) { _gateway = gateway; }
/// <summary> /// Initializes a new instance of the <see cref="SetUPCashFileNameSuccessUseCase"/> class. /// </summary> /// <param name="gateway">The gateway.</param> public SetUPCashFileNameSuccessUseCase(IUPCashFileNameGateway gateway) { _gateway = gateway; }