Beispiel #1
0
        public string GenerateMatrix([FromQuery(Name = "demension")] int demension = 4)
        {
            try
            {
                var matrix = _matrixGenerator.GenerateRandomMatrix(demension);

                _matrixStore.Save(_path, matrix);

                return(matrix.GetStringValue());
            }
            catch (Exception ex)
            {
                return(ex.Message);
            }
        }
Beispiel #2
0
 public void Save_PathToFileNull_ThrowArgumentNullException()
 {
     Assert.Throws <ArgumentNullException>(() => _matrixStore.Save(null, _mockFilledMatrix));
 }