public void SetUpFixture() { ILanguageWrapper mockLanguageWrapperEnglish = MockRepository.GenerateMock <ILanguageWrapper>(); mockLanguageWrapperEnglish.Stub(x => x.ToString()).Return("en"); _testItemKey1 = new ItemKey(_guid1, _path1, _ver1, mockLanguageWrapperEnglish, _webDbName); _testItemKey2 = new ItemKey(_guid2, _path1, _ver1, mockLanguageWrapperEnglish, _webDbName); _testItemKey3 = new ItemKey(_guid3, _path1, _ver1, mockLanguageWrapperEnglish, _webDbName); _testItemKey4 = new ItemKey(_guid4, _path1, _ver1, mockLanguageWrapperEnglish, _webDbName); }
public void SetUpFixture() { _mockLanguageWrapperEnglish = MockRepository.GenerateMock <ILanguageWrapper>(); _mockLanguageWrapperEnglish.Stub(x => x.ToString()).Return(_langEnglish); _mockLanguageWrapperEnglishDuplicate = MockRepository.GenerateMock <ILanguageWrapper>(); _mockLanguageWrapperEnglishDuplicate.Stub(x => x.ToString()).Return(_langEnglishDuplicate); _mockLanguageWrapperSpanish = MockRepository.GenerateMock <ILanguageWrapper>(); _mockLanguageWrapperSpanish.Stub(x => x.ToString()).Return(_langSpanish); }
public void SetUpFixture() { ILanguageWrapper mockLanguageWrapperEnglish = MockRepository.GenerateMock <ILanguageWrapper>(); ILanguageWrapper mockLanguageWrapperSpanish = MockRepository.GenerateMock <ILanguageWrapper>(); mockLanguageWrapperEnglish.Stub(x => x.ToString()).Return("en"); mockLanguageWrapperSpanish.Stub(x => x.ToString()).Return("es"); Language foo = null; _testItemKey1 = new ItemKey(_guid1, _path1, _ver1, mockLanguageWrapperEnglish, _webDbName); _testItemKey1Duplicate1 = new ItemKey(_guid1, _path1, _ver1, mockLanguageWrapperEnglish, _webDbName); _testItemKey1Duplicate2 = new ItemKey(_guid1, _path1, _ver1, mockLanguageWrapperEnglish, _webDbName); _testItemKey2 = new ItemKey(_guid2, _path1, _ver1, mockLanguageWrapperEnglish, _webDbName); _testItemKey3 = new ItemKey(_guid3, _path1, _ver1, mockLanguageWrapperEnglish, _webDbName); _testItemKey4 = new ItemKey(_guid4, _path1, _ver1, mockLanguageWrapperEnglish, _webDbName); //_testSourceDictionary = new PackageSourceDictionary();// This is in the test setup instead of fixture setup so each test gets a clean start. }