public async Task ValidateDimensionExistsAsync() { await rickService.CreateDimension("C-152"); Assert.ThrowsAsync <RickLocationException>(async() => { await rickService.Create("C-152"); }); }
public void ValidateNameEmpty() { Assert.ThrowsAsync <System.ArgumentException>(async() => { await rickService.CreateDimension(""); }); Assert.ThrowsAsync <System.ArgumentException>(async() => { await rickService.CreateDimension(null); }); }