How to test azure worker role in the local machine?
Asked Answered
A

1

10

I have azure worker role: ImportDataWorker but when I set it up as startup project it doesn't allow me to run the project:

enter image description here

Absolutely answered 3/6, 2013 at 11:58 Comment(0)
M
11

You have to set the Cloud Service project as Startup Project. And then add this worker class library as Worker Role to the Cloud Service Project.

Marijn answered 3/6, 2013 at 12:0 Comment(2)
yeah, but I am thinking how to test it with unit tests? Should I reference the worker role into test project then?Absolutely
Yep. For testing you shall reference the Worker Role project. Well the way I do is to abstract my core workers into a separate class library. Then I reference this class library into both Worker Role and Test projects.Marijn

© 2022 - 2024 — McMap. All rights reserved.