Example #1
0
        public void RequestInstance_CallsGetWithCorrectPath()
        {
            //arrange
            var uut = new UserProxy(_fakeFactory);

            _fakeFactory.Get("api/User/Login").Returns(_fakeBuilder);

            //act
            var result = uut.RequestInstanceAsync(_userFake.Username, _userFake.Password).Result;

            //assert
            _fakeFactory.Received().Get("api/User/Login");
        }