private void CreateResourceRepo()
{
_environmentModel = CreateMockEnvironment();
_resourceRepo = new Mock<IResourceRepository>();
_firstResource = CreateResource(ResourceType.WorkflowService);
var coll = new Collection<IResourceModel> { _firstResource.Object };
_resourceRepo.Setup(c => c.All()).Returns(coll);
var channel = new Mock<IStudioClientContext>();
channel.SetupGet(c => c.WorkspaceID).Returns(_workspaceID);
channel.SetupGet(c => c.ServerID).Returns(_serverID);
_environmentModel.SetupGet(s => s.DsfChannel).Returns(channel.Object);
_environmentModel.Setup(m => m.ResourceRepository).Returns(_resourceRepo.Object);
}