public async Task Setup() { _message = new MessageProviderFake(); _physicalFactory = new PhysicalFactoryFake(); _auth = new UnattendedAuthentication(_message, TestContext.Parameters["ClientId"], TestContext.Parameters["ClientSecret"], TestContext.Parameters["Username"], TestContext.Parameters["Password"]); await _auth.Authenticate(); }
public ProjectService(IAuthentication auth, IMessageProvider message, IPhysicalFactory physical) { _auth = auth; _message = message; _physical = physical; }