public void Attachment_folder_is_report_path_then_step_id()
        {
            const string reportPath = @"C:\Reports\Report1";

            reportContainer.Stub(rc => rc.ReportName).Return(reportPath);
            const string testStepId = "testStepId";

            var attachmentPath = attachmentPathResolver.GetAttachmentPath(testStepId, "attachmentName", "");

            Assert.That(Path.GetDirectoryName(attachmentPath), Is.EqualTo(Path.Combine(reportPath, testStepId)));
        }
 public void SetUp()
 {
     reportContainer = MockRepository.GenerateStub<IReportContainer>();
     reportContainer.Stub(rc => rc.EncodeFileName(Arg<string>.Is.Anything)).Do(new Func<string, string>(s => s));
     attachmentPathResolver = new AttachmentPathResolver(reportContainer);
 }
 public void SetUp()
 {
     reportContainer = MockRepository.GenerateStub <IReportContainer>();
     reportContainer.Stub(rc => rc.EncodeFileName(Arg <string> .Is.Anything)).Do(new Func <string, string>(s => s));
     attachmentPathResolver = new AttachmentPathResolver(reportContainer);
 }