Ejemplo n.º 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();
    }
Ejemplo n.º 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();
    }