Пример #1
0
        public void Init()
        {
            var mock = new Mock <IStarshipDAO>();

            // GetAll
            mock.Setup(p => p.GetAllStarshipsAsync("1"))
            .Returns(Task.FromResult(_ships));

            // Set Object
            _starshipDAO = mock.Object;
        }
Пример #2
0
 public void Finish()
 {
     _starshipDAO = null;
 }