Example #1
0
        public async Task CreateEmptyResourceAsync_Should_Work_Properly()
        {
            // Arrange
            var viewModel = new TestViewModel();
            var resource  = new TestResource(viewModel);

            MockMapper(viewModel, resource);

            _linksServiceMock
            .Setup(service => service.AddLinksAsync(resource))
            .Returns(Task.CompletedTask);

            // Act
            var result = await _resourceMapper.CreateEmptyResourceAsync <TestResource>();
        }