Beispiel #1
0
        protected AdapteeTest()
        {
            Mapper = AutoMapperServiceTestHelper.GetIMapper();

            clientMock = new Mock <IRestClient>();

            ClientFactoryMock = new Mock <IRestClientFactory>();
            ClientFactoryMock
            .Setup(_ => _.Create(It.IsAny <Uri>()))
            .Returns(clientMock.Object);
        }
Beispiel #2
0
        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);
        }