質問編集履歴
3
タイトル修正
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
AndroidテストプロジェクトでNotificationHubをMock化したいです。
|
1
|
+
【Xamarin.Forms】AndroidテストプロジェクトでNotificationHubをMock化したいです。
|
test
CHANGED
File without changes
|
2
該当ソースコード修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -24,8 +24,6 @@
|
|
24
24
|
|
25
25
|
Mock<Context> context = new Mock<Context>();
|
26
26
|
|
27
|
-
context.SetReturnsDefault(Application.Context);
|
28
|
-
|
29
27
|
Mock<NotificationHub> notificationHub = new Mock<NotificationHub>(NotificationHubName, ListenConnectionString, context.Object);
|
30
28
|
|
31
29
|
this.notification = new Droid.Notification(notificationHub.Object);
|
1
該当ソースコード修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -26,9 +26,9 @@
|
|
26
26
|
|
27
27
|
context.SetReturnsDefault(Application.Context);
|
28
28
|
|
29
|
-
Mock<NotificationHub> notificationHub = new Mock<NotificationHub>(
|
29
|
+
Mock<NotificationHub> notificationHub = new Mock<NotificationHub>(NotificationHubName, ListenConnectionString, context.Object);
|
30
30
|
|
31
|
-
this.notification = new Droid.
|
31
|
+
this.notification = new Droid.Notification(notificationHub.Object);
|
32
32
|
|
33
33
|
```
|
34
34
|
|