예제 #1
0
        protected override void GivenThat()
        {
            base.GivenThat();

            DataObjectUriExtractor.Stub(extractor => extractor.GetUri(DataObject))
            .Return(null);
        }
예제 #2
0
        protected override void GivenThat()
        {
            base.GivenThat();

            DataObjectUriExtractor.Stub(extractor => extractor.GetUri(DataObject))
            .Return("http://www.test.com/podcast.xml");
        }
        protected override void GivenThat()
        {
            base.GivenThat();

            Extractor = new DataObjectUriExtractor();

            DataObject = GenerateMock <IDataObject>();
        }
        protected override void GivenThat()
        {
            base.GivenThat();

            var dataObject = GenerateMock <IDataObject>();

            DataObjectUriExtractor.Stub(extractor => extractor.ContainsUri(dataObject))
            .Return(true);

            CommandParameter = dataObject;
        }