{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/service-fabric-issues/issues/890","repository_url":"https://api.github.com/repos/Azure/service-fabric-issues","labels_url":"https://api.github.com/repos/Azure/service-fabric-issues/issues/890/labels{/name}","comments_url":"https://api.github.com/repos/Azure/service-fabric-issues/issues/890/comments","events_url":"https://api.github.com/repos/Azure/service-fabric-issues/issues/890/events","html_url":"https://github.com/Azure/service-fabric-issues/issues/890","id":301354724,"number":890,"title":"Actors testing","user":{"login":"mgrishkov","id":3851145,"avatar_url":"https://avatars1.githubusercontent.com/u/3851145?v=4","gravatar_id":"","url":"https://api.github.com/users/mgrishkov","html_url":"https://github.com/mgrishkov","followers_url":"https://api.github.com/users/mgrishkov/followers","following_url":"https://api.github.com/users/mgrishkov/following{/other_user}","gists_url":"https://api.github.com/users/mgrishkov/gists{/gist_id}","starred_url":"https://api.github.com/users/mgrishkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgrishkov/subscriptions","organizations_url":"https://api.github.com/users/mgrishkov/orgs","repos_url":"https://api.github.com/users/mgrishkov/repos","events_url":"https://api.github.com/users/mgrishkov/events{/privacy}","received_events_url":"https://api.github.com/users/mgrishkov/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"ashishnegi","id":1728946,"avatar_url":"https://avatars0.githubusercontent.com/u/1728946?v=4","gravatar_id":"","url":"https://api.github.com/users/ashishnegi","html_url":"https://github.com/ashishnegi","followers_url":"https://api.github.com/users/ashishnegi/followers","following_url":"https://api.github.com/users/ashishnegi/following{/other_user}","gists_url":"https://api.github.com/users/ashishnegi/gists{/gist_id}","starred_url":"https://api.github.com/users/ashishnegi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashishnegi/subscriptions","organizations_url":"https://api.github.com/users/ashishnegi/orgs","repos_url":"https://api.github.com/users/ashishnegi/repos","events_url":"https://api.github.com/users/ashishnegi/events{/privacy}","received_events_url":"https://api.github.com/users/ashishnegi/received_events","type":"User","site_admin":false},"assignees":[{"login":"ashishnegi","id":1728946,"avatar_url":"https://avatars0.githubusercontent.com/u/1728946?v=4","gravatar_id":"","url":"https://api.github.com/users/ashishnegi","html_url":"https://github.com/ashishnegi","followers_url":"https://api.github.com/users/ashishnegi/followers","following_url":"https://api.github.com/users/ashishnegi/following{/other_user}","gists_url":"https://api.github.com/users/ashishnegi/gists{/gist_id}","starred_url":"https://api.github.com/users/ashishnegi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashishnegi/subscriptions","organizations_url":"https://api.github.com/users/ashishnegi/orgs","repos_url":"https://api.github.com/users/ashishnegi/repos","events_url":"https://api.github.com/users/ashishnegi/events{/privacy}","received_events_url":"https://api.github.com/users/ashishnegi/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-03-01T10:36:52Z","updated_at":"2018-03-29T13:40:50Z","closed_at":"2018-03-29T13:40:50Z","author_association":"NONE","body":"I've created simple unit-test using mstest:\r\n```\r\n[TestMethod]\r\n[DataRow(\"cU...IX14q\")]\r\npublic async Task SendPush(string pushToken)\r\n{\r\n    var proxy = ActorProxy.Create<IPushFcmSenderActor>(ActorId.CreateRandom(), Abstractions.Constants.ServiceConstants.ServiceUri);\r\n    proxy.Should().NotBeNull();\r\n\r\n    var message = new SendData();\r\n    var payload = new PayloadData();\r\n\r\n    await proxy.SendAsync(message, payload);\r\n}\r\n```\r\nand add dependency to test project:\r\n```\r\n    <PackageReference Include=\"FluentAssertions\" Version=\"4.19.4\" />\r\n    <PackageReference Include=\"Microsoft.NET.Test.Sdk\" Version=\"15.5.0\" />\r\n    <PackageReference Include=\"Microsoft.ServiceFabric\" Version=\"6.1.456\" />\r\n    <PackageReference Include=\"Microsoft.ServiceFabric.Actors\" Version=\"3.0.456\" />\r\n    <PackageReference Include=\"Microsoft.ServiceFabric.Services\" Version=\"3.0.456\" />\r\n    <PackageReference Include=\"MSTest.TestAdapter\" Version=\"1.2.0\" />\r\n    <PackageReference Include=\"MSTest.TestFramework\" Version=\"1.2.0\" />\r\n```\r\n\r\nWhen I call it in VS it works fine, but when I call it via `dotnet test` it throws exception:\r\n`System.BadImageFormatException: Could not load file or assembly \"Microsoft.ServiceFabric.Actors, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\" or one of its dependencies.`\r\n\r\nHow can I fix it? Or maybe I should choose another way to testing actors?\r\n"},"comment":{"url":"https://api.github.com/repos/Azure/service-fabric-issues/issues/comments/377238456","html_url":"https://github.com/Azure/service-fabric-issues/issues/890#issuecomment-377238456","issue_url":"https://api.github.com/repos/Azure/service-fabric-issues/issues/890","id":377238456,"user":{"login":"mgrishkov","id":3851145,"avatar_url":"https://avatars1.githubusercontent.com/u/3851145?v=4","gravatar_id":"","url":"https://api.github.com/users/mgrishkov","html_url":"https://github.com/mgrishkov","followers_url":"https://api.github.com/users/mgrishkov/followers","following_url":"https://api.github.com/users/mgrishkov/following{/other_user}","gists_url":"https://api.github.com/users/mgrishkov/gists{/gist_id}","starred_url":"https://api.github.com/users/mgrishkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgrishkov/subscriptions","organizations_url":"https://api.github.com/users/mgrishkov/orgs","repos_url":"https://api.github.com/users/mgrishkov/repos","events_url":"https://api.github.com/users/mgrishkov/events{/privacy}","received_events_url":"https://api.github.com/users/mgrishkov/received_events","type":"User","site_admin":false},"created_at":"2018-03-29T13:40:50Z","updated_at":"2018-03-29T13:40:50Z","author_association":"NONE","body":"After the VS updating up to 15.6.4 testing works  fine even when I call `dotnet test` command"}}
{"actor":{"display_login":"mgrishkov"}}