예제 #1
0
        public RulesConverterTest()
        {
            this.mockBlobStorageClient    = new Mock <IBlobStorageClient>();
            this.mockStorageAdapterClient = new Mock <IStorageAdapterClient>();
            this.mockLog      = new Mock <ILogger <RulesConverter> >();
            this.rand         = new Random();
            this.entityHelper = new CreateEntityHelper(this.rand);

            this.converter = new RulesConverter(
                this.mockBlobStorageClient.Object,
                this.mockStorageAdapterClient.Object,
                this.mockLog.Object);
        }
예제 #2
0
        public IothubmanagerclientTest()
        {
            this.mockConfig = new Mock <AppConfig>();
            this.mockConfig
            .Setup(c => c.ExternalDependencies.IotHubManagerServiceUrl)
            .Returns(MockApiUrl);

            this.mockRequestHelper = new Mock <IExternalRequestHelper>();

            this.client       = new IotHubManagerClient(this.mockConfig.Object, this.mockRequestHelper.Object);
            this.rand         = new Random();
            this.entityHelper = new CreateEntityHelper(this.rand);
        }
        public DeviceGroupsConverterTest()
        {
            this.mockBlobStorageClient    = new Mock <IBlobStorageClient>();
            this.mockStorageAdapterClient = new Mock <IStorageAdapterClient>();
            this.mockIotHubManagerClient  = new Mock <IIotHubManagerClient>();
            this.mockLog      = new Mock <ILogger <DeviceGroupsConverter> >();
            this.rand         = new Random();
            this.entityHelper = new CreateEntityHelper(this.rand);

            this.converter = new DeviceGroupsConverter(
                this.mockIotHubManagerClient.Object,
                this.mockBlobStorageClient.Object,
                this.mockStorageAdapterClient.Object,
                this.mockLog.Object);
        }