mirror of
https://github.com/ZetaKebab/MpcNET.git
synced 2025-07-18 13:37:36 +00:00
Restructured commands
This commit is contained in:
@ -3,7 +3,6 @@ namespace MpcNET.Test
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using MpcNET.Commands;
|
||||
using MpcNET.Tags;
|
||||
|
||||
public partial class LibMpcTest
|
||||
@ -11,7 +10,7 @@ namespace MpcNET.Test
|
||||
[TestMethod]
|
||||
public async Task ListAllTest()
|
||||
{
|
||||
var response = await Mpc.SendAsync(commands => commands.Database.ListAll());
|
||||
var response = await Mpc.SendAsync(new Commands.Database.ListAllCommand());
|
||||
|
||||
TestOutput.WriteLine("ListAllTest Result:");
|
||||
TestOutput.WriteLine(response);
|
||||
@ -22,7 +21,7 @@ namespace MpcNET.Test
|
||||
[TestMethod]
|
||||
public async Task FindGenreTest()
|
||||
{
|
||||
var response = await Mpc.SendAsync(commands => commands.Database.Find(MpdTags.Genre, "soundfx"));
|
||||
var response = await Mpc.SendAsync(new Commands.Database.FindCommand(MpdTags.Genre, "soundfx"));
|
||||
|
||||
TestOutput.WriteLine("FindGenreTest Result:");
|
||||
TestOutput.WriteLine(response);
|
||||
|
Reference in New Issue
Block a user