public void SetUp() { // Setup Mocks and Stub mockDataService = new Mock <IDataService>(); mockCacheProvider = MockComponentProvider.CreateDataCacheProvider(); subscriptionSecurityController = new Mock <ISubscriptionSecurityController>(); DataService.SetTestableInstance(mockDataService.Object); SubscriptionSecurityController.SetTestableInstance(subscriptionSecurityController.Object); // Setup SUT subscriptionController = new SubscriptionController(); }
public void TearDown() { DataService.ClearInstance(); SubscriptionSecurityController.ClearInstance(); MockComponentProvider.ResetContainer(); }