Interface service Quote/User + Debut Stub Service Quote

Converter
Kevin MONDEJAR 4 months ago
parent af07002098
commit 5853ad7004

@ -0,0 +1,27 @@
using WF_WebAdmin.Model;
namespace WF_WebAdmin.Service
{
public interface IQuoteService
{
public void addQuote(Quote quote);
public void removeQuote(Quote quote);
public void validQuote(Quote quote);
public void updateQuote(Quote quote);
public List<Quote> getAllQuote();
public List<Quote> getSomeQuote(int nb, int page);
public Quote getOnequote(int id);
public List<Quote> reserchQuote(string reserch, List<string> argument);
public List<Quote> getAllQuoteInvalid();
public List<Quote> getSomeQuoteInvalid(int nb, int page);
}
}

@ -0,0 +1,21 @@
using WF_WebAdmin.Model;
namespace WF_WebAdmin.Service
{
public interface IUserService
{
public void removeUser(User user);
public void updateRole(User user);
public void downgradeRole(User user);
public List<User> getAllUser();
public List<User> getSomeUser(int nb, int page);
public User getOneUser(int id);
public List<User> reserchUsers(string reserch, List<string> args);
}
}

@ -0,0 +1,65 @@
using Microsoft.AspNetCore.Components;
using WF_WebAdmin.Model;
using static System.Net.WebRequestMethods;
namespace WF_WebAdmin.Service
{
public class QuoteServiceStub : IQuoteService
{
[Inject]
public HttpClient Http { get; set; }
[Inject]
public NavigationManager NavigationManager { get; set; }
public void addQuote(Quote quote)
{
}
public List<Quote> getAllQuote()
{
throw new NotImplementedException();
}
public List<Quote> getAllQuoteInvalid()
{
throw new NotImplementedException();
}
public Quote getOnequote(int id)
{
throw new NotImplementedException();
}
public List<Quote> getSomeQuote(int nb, int page)
{
throw new NotImplementedException();
}
public List<Quote> getSomeQuoteInvalid(int nb, int page)
{
throw new NotImplementedException();
}
public void removeQuote(Quote quote)
{
throw new NotImplementedException();
}
public List<Quote> reserchQuote(string reserch, List<string> argument)
{
throw new NotImplementedException();
}
public void updateQuote(Quote quote)
{
throw new NotImplementedException();
}
public void validQuote(Quote quote)
{
throw new NotImplementedException();
}
}
}
Loading…
Cancel
Save