<commit_before>﻿// <copyright>
// Copyright (c) <NAME>. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
// </copyright>

namespace Media.Recording.Specification
{
    using FixieSpec;

    [Inconclusive]
    public class VideoRecordingSpecification
    {
        public void Given_a_camera_is_available()
        {
        }

        public void And_given_a_microphone_is_available()
        {
        }

        public void When_the_video_recording_is_started()
        {
        }

        [Inconclusive]
        public void Then_the_video_recording_should_be_recording()
        {
        }

        [Inconclusive]
        public void Then_the_selected_camera_is_used_for_recording()
        {
        }

        [Inconclusive]
        public void And_then_the_selected_microphone_is_used_for_recording()
        {
        }

        [Inconclusive]
        public void And_then_the_selected_camera_is_not_available_anymore()
        {
        }

        [Inconclusive]
        public void And_then_the_selected_microphone_is_not_available_anymore()
        {
        }
    }
}<commit_msg>Sample domain: Completed the video part of the successful video recording specification<commit_after>﻿// <copyright>
// Copyright (c) <NAME>. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
// </copyright>

namespace Media.Recording.Specification
{
    using FixieSpec;
    using Shouldly;

    using Domain;
    using Domain.Recording;

    public sealed class VideoRecordingSpecification
    {
        readonly Microphone microphone = new Microphone();
        readonly VideoCamera camera = new VideoCamera();

        readonly VideoRecording videoRecording;

        public VideoRecordingSpecification()
        {
            videoRecording = new VideoRecording(camera);
        }

        public void Given_a_camera_is_available()
        {
            camera.MakeAvailable();
        }

        public void And_given_a_microphone_is_available()
        {
            microphone.MakeAvailable();
        }

        public void When_the_video_recording_is_started()
        {
            videoRecording.StartRecording();
        }

        public void Then_the_video_recording_should_be_recording()
        {
            videoRecording.IsRecording().ShouldBeTrue();
        }

        public void Then_the_selected_camera_is_used_for_recording()
        {
            camera.IsInRole(DeviceRole.Recording).ShouldBeTrue();
        }

        [Inconclusive]
        public void And_then_the_selected_microphone_is_used_for_recording()
        {
        }

        public void And_then_the_selected_camera_is_not_available_anymore()
        {
            camera.IsAvailable().ShouldBeFalse();
        }

        [Inconclusive]
        public void And_then_the_selected_microphone_is_not_available_anymore()
        {
        }
    }
}
{'fraction_non_alphanumeric': 0.06771706335903453, 'fraction_numerical': 0.0, 'mean_word_length': 2.326644370122631, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6615534', 'n_tokens_mistral': 850, 'n_tokens_neox': 814, 'n_words': 162}