コード例 #1
0
        public void SaveDataset_GivenViewModelIsNull_ThrowsArgumentNullException()
        {
            // Act
            Func <Task> test = async() => await _controller.SaveDataset(null);

            // Assert
            test
            .Should()
            .ThrowExactly <NullReferenceException>();
        }
コード例 #2
0
        public void SaveDatastoreObject(string store, TransportDataset dataset)
        {
            var datasetController = new DatasetController();

            datasetController.SaveDataset(dataset.GetDataset());
        }