Previous related question:
Is this code untied and am I doing it right?
This is what my code looks like:
using System.Collections.Generic;
using SharpDIC.Api.Models;
namespace SharpDIC.Api.Interfaces
{
public interface IMemberFinder
{
IList<Member> FindAllMembers();
Member FindMember(int memberId);
Member FindMember(string memberName);
}
}
using SharpDIC.Api.Interfaces;
namespace SharpDIC.Api
{
public class MemberLister
{
private IMemberFinder _finder;
public MemberLister(IMemberFinder finder)
{
this._finder = finder;
}
}
}
It seems to be finally unleashed !: D Thank you for your suggestions and help. Now I am asking where I am writing the actual code that will actually GET an XML response from an open API. How can I organize this piece of code?
The reason I use IMemberFinder is because I intend to use JSON and another future open API.
Thanks for helping the guys, you are a huge help for developers who want to expand their horizons.
Edit:
: XML? "public class MemberFinder: IMemberFinder", ?
delete