public AddAnErrorToTheRepositorySteps(GivenData given)
        {
            _given = given;

            _given.Error = new Error(new Exception("dummy exception"));
            _given.ErrorId = Guid.NewGuid().ToString();

            _given.ErrorRepository = A.Fake<IErrorRepository>();

            A.CallTo(() => _given.ErrorRepository.AddErrorAsync(A<ErrorRecord>.That.Matches(errorRecord => errorRecord.IsEquivalentTo(_given.Error.ToErrorRecord()))))
                .Invokes(x => _callsToAddErrorAsync += 1)
                .Returns(_given.ErrorId);

            _given.ErrorLog = new RepositoryErrorLog(_given.ErrorRepository);
        }
 public GetAnErrorFromTheRepositorySteps(GivenData given)
 {
     _given = given;
     _given.ErrorRepository = A.Fake<IErrorRepository>();
     _given.ErrorLog = new RepositoryErrorLog(_given.ErrorRepository);
 }
 public ConvertANameValueCollectionToAToKeyValueCollectionSteps(GivenData given)
 {
     _given = given;
 }
 public ConvertAnIDictionaryToKeyValueCollectionSteps(GivenData given)
 {
     _given = given;
 }
 public KeyValueItemConstructorSteps(GivenData given)
 {
     _given = given;
 }