public static async Task GetRoutine_GivenValidName_ReturnsNone() { var provider = new EmptyDatabaseRoutineProvider(); var routine = provider.GetRoutine("routine_name"); var routineIsNone = await routine.IsNone.ConfigureAwait(false); Assert.That(routineIsNone, Is.True); }
public static async Task GetAllRoutines_WhenEnumerated_ContainsNoValues() { var provider = new EmptyDatabaseRoutineProvider(); var hasRoutines = await provider.GetAllRoutines() .AnyAsync() .ConfigureAwait(false); Assert.That(hasRoutines, Is.False); }
public static void GetRoutine_GivenNullName_ThrowsArgumentNullException() { var provider = new EmptyDatabaseRoutineProvider(); Assert.That(() => provider.GetRoutine(null), Throws.ArgumentNullException); }