public void SaveDataset_GivenViewModelIsNull_ThrowsArgumentNullException() { // Act Func <Task> test = async() => await _controller.SaveDataset(null); // Assert test .Should() .ThrowExactly <NullReferenceException>(); }
public void SaveDatastoreObject(string store, TransportDataset dataset) { var datasetController = new DatasetController(); datasetController.SaveDataset(dataset.GetDataset()); }