Example #1
0
    public async Task GetShouldReturnNullIfNoFeatureFound()
    {
        // Arrange
        InitializeFeaturesData();
        var featuresService = new FeaturesService(_db, new Settings());

        // Act
        var feature = await featuresService.Get("X");

        // Assert
        feature.ShouldBeNull();
    }
Example #2
0
    public async Task GetShouldReturnAnExistingFeature()
    {
        // Arrange
        InitializeFeaturesData();
        var featuresService = new FeaturesService(_db, new Settings());

        // Act
        var feature = await featuresService.Get("Beta");

        // Assert
        feature.ShouldNotBeNull();
    }