コード例 #1
0
        public void GivenValidIExportFileFactory_WhenSetCurrent_ThenCurrentIExportFileFactoryIsSetToPassedInIExportFileFactory()
        {
            IExportFileFactory expected = MockRepository.GenerateMock <IExportFileFactory>();

            ExportFileFactory.SetCurrent(expected);

            Assert.AreEqual(expected, ExportFileFactory.Current);
        }
コード例 #2
0
 public static void SetCurrent(IExportFileFactory current)
 {
     if (current == null)
     {
         throw new ArgumentNullException("current");
     }
     _instance = current;
 }
コード例 #3
0
 public static void SetCurrent(IExportFileFactory current)
 {
     if (current == null)
     {
         throw new ArgumentNullException("current");
     }
     _instance = current;
 }