コード例 #1
0
        public void Should_not_create_artifact_when_artifact_is_null()
        {
            var result = _artifactService.CreateArtifact(null).Result;

            _artifactRepo.DidNotReceive().SaveArtifact(Arg.Any <CreateArtifactModel>());
            result.Should().Be(-1);
        }