public void Init() { var environmentGroupsServiceMock = new Mock <IEnvironmentGroupsService>(); environmentGroupsServiceMock.Setup(x => x.AddPredefinedGroupsToUser(It.IsAny <int>())) .Callback(() => { }); _environmentGroupsService = environmentGroupsServiceMock.Object; }
public EnvironmentGroupsController(IEnvironmentGroupsService environmentGroupsService, IWebPrincipal webPrincipal) { _environmentGroupsService = environmentGroupsService; _webPrincipal = webPrincipal; }
public UsersService(IUsersRepository usersRepository, IEnvironmentGroupsService environmentGroupsService) { _usersRepository = usersRepository; _environmentGroupsService = environmentGroupsService; }