protected AdapteeTest() { Mapper = AutoMapperServiceTestHelper.GetIMapper(); clientMock = new Mock <IRestClient>(); ClientFactoryMock = new Mock <IRestClientFactory>(); ClientFactoryMock .Setup(_ => _.Create(It.IsAny <Uri>())) .Returns(clientMock.Object); }
public void Initialize() { factoryMock = new Mock <IServiceScopeFactory>(); repositoryMock = new Mock <IDataSourceModelRepository>(); assemblyHelperMock = new Mock <IAssemblyHelper>(); mapper = AutoMapperServiceTestHelper.GetIMapper(); loader = new DataProviderLoader(factoryMock.Object, repositoryMock.Object, assemblyHelperMock.Object, mapper); }