public async System.Threading.Tasks.Task CreateCategory()
        {
            Assert.AreNotEqual(Guid.Empty, project.ProjectId);

            Category category = await taskService.CreateCategoryInProjectAsync(project);

            Assert.IsNotNull(category.CategoryId);
            Assert.IsNotNull(category.ProjectId);
            Assert.IsNotNull(category.Name);
        }
        private async System.Threading.Tasks.Task OnCreateCategory()
        {
            try
            {
                Category newCategory = await _taskService.CreateCategoryInProjectAsync(Project);

                Categories.Add(newCategory);
            }
            catch (TimeoutException timeoutEx)
            {
                _eventAggregator.GetEvent <TimeoutErrorEvent>().Publish(timeoutEx);
            }
        }
        public async System.Threading.Tasks.Task InitializeKernelAsync()
        {
            kernel = new StandardKernel();
            kernel.Load(new ServiceConsumerNinjectModule());
            Mock <IServiceRunningIndicator> servMock = new Mock <IServiceRunningIndicator>();

            kernel.Bind <IServiceRunningIndicator>().ToConstant(servMock.Object);


            service              = kernel.Get <IAdministrationRemoteService>();
            pinzService          = kernel.Get <IPinzAdminRemoteService>();
            taskService          = kernel.Get <ITaskRemoteService>();
            authorisationService = kernel.Get <IAuthorisationRemoteService>();

            UserNameClientCredentials credentials = kernel.Get <UserNameClientCredentials>();

            credentials.UserName = TestUserCredentials.UserName;
            credentials.Password = TestUserCredentials.Password;
            credentials.UpdateCredentialsForAllFactories();

            company = new Company()
            {
                Name = "Pinz Online"
            };
            company = await pinzService.CreateCompanyAsync(company);

            Project project = new Project()
            {
                CompanyId   = company.CompanyId,
                Name        = "My test project",
                Description = "Descirption"
            };
            await service.CreateProjectAsync(project);

            User user = new User()
            {
                EMail          = "*****@*****.**",
                IsCompanyAdmin = true,
                CompanyId      = company.CompanyId
            };

            user = await service.CreateUserAsync(user);

            await service.AddUserToProjectAsync(user, project, true);

            category = await taskService.CreateCategoryInProjectAsync(project);
        }