private async Task <long> CreateVaultOwner(long vaultId, long ownerId, long createdByUserId)
        {
            var vaultOwner = new VaultOwner
            {
                OwnerId = ownerId,
                VaultId = vaultId
            };

            var createdVaultOwner = await _entityRepository.AddEntity(vaultOwner, createdByUserId);

            return(createdVaultOwner.Id);
        }
Exemple #2
0
        public static VaultOwner TestVaultOwner()
        {
            var value = new VaultOwner
            {
                Id = 1,
            };

            FillTrackedEntity(value);

            value.OwnerId = TestOwner().Id;
            value.VaultId = TestVault().Id;

            return(value);
        }