public void Init() { var mock = new Mock <IStarshipDAO>(); // GetAll mock.Setup(p => p.GetAllStarshipsAsync("1")) .Returns(Task.FromResult(_ships)); // Set Object _starshipDAO = mock.Object; }
public void Finish() { _starshipDAO = null; }
public void Init() { var mock = new Mock <IStarshipDAO>(); // GetAll mock.Setup(p => p.GetAllStarshipsAsync("1")) .Returns(Task.FromResult(_ships)); // Set Object _starshipDAO = mock.Object; }
public void Finish() { _starshipDAO = null; }