public async Task UserManagementServices_GetByIdAsyncTest_Emptyid() { IUserManagementServices manager = IoCFactory.Instance.CurrentContainer.Resolve <IUserManagementServices>(); User usr = await manager.GetByIdAsync(Guid.Empty, new CancellationToken()); Assert.IsNull((object)usr); }
public async Task UserManagementServices_GetByIdAsyncTest_validId() { Guid id = new Guid("448e47ad-0fc3-c5c2-584d-08d1b874916a"); IUserManagementServices manager = IoCFactory.Instance.CurrentContainer.Resolve <IUserManagementServices>(); User usr = await manager.GetByIdAsync(id, new CancellationToken()); Assert.IsNotNull((object)usr); Assert.IsTrue(usr.Id == id); }