public async Task When_Passing_Null_Parameter_Then_Exception_Is_Thrown()
        {
            // ARRANGE
            InitializeFakeObjects();

            // ACT & ASSERT
            await Assert.ThrowsAsync <ArgumentNullException>(() => _getScopeOperation.Execute(null));

            await Assert.ThrowsAsync <ArgumentNullException>(() => _getScopeOperation.Execute(string.Empty));
        }
 public Task <Scope> GetScope(string scopeName)
 {
     return(_getScopeOperation.Execute(scopeName));
 }
Пример #3
0
 public Task <ScopeResponse> Get(string id, string url)
 {
     return(_getScopeOperation.Execute(id, url));
 }