public async Task Repository_SecretGetSecretMessage() { Database.SetInitializer(new ApplicationDatabaseInitialize()); var context = new ApplicationDbContext(); var repo = new SecretRepository(context); var result = await repo.GetSecret(); Assert.IsNotNull(result.Message); }
public async Task Repository_SecretGetSecretId() { Database.SetInitializer(new ApplicationDatabaseInitialize()); var context = new ApplicationDbContext(); var repo = new SecretRepository(context); var result = await repo.GetSecret(); Assert.AreEqual(1, result.Id); }