public void Valid_Arguments_Should_Construct() { var controller = new RebuildController( Mock.Of <IGlasswallVersionService>(), Mock.Of <IFileTypeDetector>(), Mock.Of <IFileProtector>(), Mock.Of <IMetricService>(), Mock.Of <ILogger <RebuildController> >()); Assert.That(controller, Is.Not.Null); }
protected virtual void CommonSetup() { GlasswallVersionServiceMock = new Mock <IGlasswallVersionService>(); FileTypeDetectorMock = new Mock <IFileTypeDetector>(); FileProtectorMock = new Mock <IFileProtector>(); MetricServiceMock = new Mock <IMetricService>(); LoggerMock = new Mock <ILogger <RebuildController> >(); ClassInTest = new RebuildController( GlasswallVersionServiceMock.Object, FileTypeDetectorMock.Object, FileProtectorMock.Object, MetricServiceMock.Object, LoggerMock.Object ); HttpTest = new HttpTest(); }