Exemplo n.º 1
0
    public async Task GetAllShouldReturnZeroFeatures()
    {
        // Arrange
        var featuresService = new FeaturesService(_db, new Settings());

        // Act
        var features = await featuresService.GetAll();

        // Assert
        features.ShouldBeEmpty();
    }
Exemplo n.º 2
0
    public async Task GetAllShouldReturnFiveFeatures()
    {
        // Arrange
        InitializeFeaturesData();
        var featuresService = new FeaturesService(_db, new Settings());

        // Act
        var features = await featuresService.GetAll();

        // Assert
        features.Count.ShouldBe(5);
    }