Exemplo n.º 1
0
        public async Task QueueDeleteJobDelegatesToDeleteJobCreationService()
        {
            string    correlationId   = NewRandomString();
            string    specificationId = NewRandomString();
            Reference user            = NewUser();

            await _service.QueueDeleteSpecificationJob(specificationId, user, correlationId);

            await _deleteSpecifications
            .Received(1)
            .CreateJob(Arg.Is(specificationId),
                       Arg.Is(user),
                       Arg.Is(correlationId),
                       null,
                       null);
        }