Ejemplo n.º 1
0
        public async Task GetStandardArtifactTypes_AllRequirementsAreSatisfied_SuccessResult()
        {
            // Arrange
            var artifacts = new List <StandardArtifactType> {
                new StandardArtifactType {
                    Id = 1, Name = "CustomActor"
                }
            };

            cxn.SetupQueryAsync("GetStandardArtifactTypes", It.IsAny <Dictionary <string, object> >(), artifacts);

            // Act
            var standardArtifacts = await repository.GetStandardArtifactTypes(StandardArtifactTypes.All);

            // Assert
            Assert.IsNotNull(standardArtifacts);
            Assert.AreEqual(standardArtifacts.Count(), 1);
        }