예제 #1
0
        public void AddNewSchema_CreateNewSchema()
        {
            // Arrange
            mockSchemaRepository = new Mock<IRepository<Schema>>();
            var schemaService = new SchemaService(mockSchemaRepository.Object, mapper);
            var schemaDomain = new SchemaDomain();
            // Act
            schemaService.AddNewSchema(schemaDomain);

            // Assert
            mockSchemaRepository.Verify(x => x.Create(It.IsAny<Schema>()), Times.Once);
        }