Esempio n. 1
0
        public async void CreateReferenceTest()
        {
            Workspace workspace = await CrateWorkspace();

            Component source = await CreateComponent(workspace, "Source");

            Component target = await CreateComponent(workspace, "Target");

            Reference referenceTemplate = CreateReferenceTemplate(workspace, source, target);
            Reference reference         = await service.CreateReference(referenceTemplate);

            Assert.NotNull(reference.Id);
            await DeleteWorkspace(workspace);
        }
Esempio n. 2
0
        public async Task <User> AddUser(User user)
        {
            user = await _referenceService.CreateReference(user);

            return(await _userRepository.CreateUser(user));
        }