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

            ExportFileFactory.SetCurrent(expected);

            Assert.AreEqual(expected, ExportFileFactory.Current);
        }
 public static void SetCurrent(IExportFileFactory current)
 {
     if (current == null)
     {
         throw new ArgumentNullException("current");
     }
     _instance = current;
 }
 public static void SetCurrent(IExportFileFactory current)
 {
     if (current == null)
     {
         throw new ArgumentNullException("current");
     }
     _instance = current;
 }