示例#1
0
    public async Task GetAllShouldReturnZeroFeatures()
    {
        // Arrange
        var featuresService = new FeaturesService(_db, new Settings());

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

        // Assert
        features.ShouldBeEmpty();
    }
示例#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);
    }