/// <summary>
        /// Initializes a new instance of the <see cref="GoogleFileSettingGatewayTests"/> class.
        /// </summary>
        public GoogleFileSettingGatewayTests()
        {
            // Seed
            for (int i = 1; i <= 3; i++)
            {
                DatabaseContext.GoogleFileSettings.Add(new GoogleFileSetting
                {
                    GoogleIdentifier = i.ToString(),
                    EndDate          = DateTimeOffset.UtcNow.AddDays(1),
                    StartDate        = DateTimeOffset.UtcNow,
                    FileType         = ".dat"
                });
            }

            DatabaseContext.SaveChanges();
            _gateway = new GoogleFileSettingGateway(DatabaseContext);
        }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ListGoogleFileSettingsUseCase"/> class.
 /// </summary>
 /// <param name="settingGateway">The setting gateway.</param>
 public ListGoogleFileSettingsUseCase(IGoogleFileSettingGateway settingGateway)
 {
     _googleFileSettingGateway = settingGateway;
 }